Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
name: Create Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5

- name: Get Version
id: get_version
Expand Down
31 changes: 0 additions & 31 deletions .github/workflows/lint.yml

This file was deleted.

50 changes: 39 additions & 11 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,65 @@
name: release pages
name: Docs Pipeline

on:
workflow_dispatch:
push:
branches:
- "**"
paths:
- "docs/**"
- "mkdocs.yml"
- ".github/workflows/pages.yml"
pull_request:
paths:
- "docs/**"
- "mkdocs.yml"
- ".github/workflows/pages.yml"
release:
types:
- released
- published

permissions:
contents: write

jobs:
vale:
name: runner / vale
#vale:
# name: Lint Docs with Vale
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v5
# - uses: errata-ai/vale-action@v2.1.1

build:
name: Test Docs Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: errata-ai/vale-action@v2.1.1
- uses: actions/checkout@v5
- uses: actions/setup-python@v6
with:
python-version: 3.x
- run: pip install mkdocs-material==9.5.24
- name: Build Docs (Dry Run)
run: mkdocs build --strict

deploy:
name: Deploy Docs
runs-on: ubuntu-latest
- test-docs
if: github.event_name == 'release' && github.event.action == 'published'
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
- name: Configure Git Credentials
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- uses: actions/setup-python@v5
- uses: actions/setup-python@v6
with:
python-version: 3.x
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v4
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- run: pip install mkdocs-material==9.5.24
- run: mkdocs gh-deploy --force
- run: mkdocs gh-deploy --force
43 changes: 40 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,51 @@ on:
push:
branches:
- "**"
paths:
- "**.go"
- ".github/workflows/lint.yml"
- ".github/workflows/test.yml"
pull_request:
paths:
- "**.go"
- ".github/workflows/lint.yml"
- ".github/workflows/test.yml"

env:
COVERAGE_FILE: coverage.out

permissions:
contents: read

jobs:
build:
lint:
name: lint
permissions:
contents: read
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
go-version: ["1.23", "1.24"]

steps:
- name: Checkout code
uses: actions/checkout@v5

- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: ${{ matrix.go-version }}
cache: false
- name: golangci-lint
uses: golangci/golangci-lint-action@v8
with:
version: latest

test:
name: Test
permissions:
contents: read
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand All @@ -21,10 +58,10 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v5

- name: Set up Go
uses: actions/setup-go@v5
uses: actions/setup-go@v6
with:
go-version: ${{ matrix.go-version }}
- name: Install dependencies
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/weekly-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
should_release: ${{ steps.check.outputs.should_release }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v5

- name: Test if should release
id: check
Expand All @@ -39,7 +39,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v5

- name: Get Version
id: read_version
Expand Down
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"request": "launch",
"mode": "auto",
"program": "${file}",
"buildFlags": "-tags=preview.query"
"buildFlags": "-tags=\"preview.query preview.tableApiV2\""
}
]
}
5 changes: 2 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
},
"go.coverOnSave": true,
"go.formatFlags": ["-s", "-w"],
"go.buildFlags": ["-tags=preview.query"],
"go.lintOnSave": "package",
"go.lintTool": "golangci-lint",
"go.lintFlags": [],
Expand Down Expand Up @@ -86,8 +85,8 @@
"waderyan",
"yzhang"
],
"gopls": {
"build.buildFlags": ["-tags=preview.query"]
"gopls": {
},
"go.buildTags": "preview.query preview.tableApiV2",
"go.useLanguageServer": true
}
69 changes: 34 additions & 35 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,35 +1,34 @@
module github.com/michaeldcanady/servicenow-sdk-go

go 1.23.0

toolchain go1.24.1

require (
github.com/gabriel-vasile/mimetype v1.4.9
github.com/google/go-querystring v1.1.0
github.com/google/uuid v1.6.0
github.com/microsoft/kiota-abstractions-go v1.9.3
github.com/microsoft/kiota-http-go v1.5.4
github.com/microsoft/kiota-serialization-form-go v1.1.2
github.com/microsoft/kiota-serialization-json-go v1.1.2
github.com/microsoft/kiota-serialization-multipart-go v1.1.2
github.com/microsoft/kiota-serialization-text-go v1.1.2
github.com/mozillazg/go-httpheader v0.4.0
github.com/stretchr/testify v1.10.0
github.com/yosida95/uritemplate/v3 v3.0.2
)

require (
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/go-logr/logr v1.4.2 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/std-uritemplate/std-uritemplate/go/v2 v2.0.3 // indirect
github.com/stretchr/objx v0.5.2 // indirect
go.opentelemetry.io/auto/sdk v1.1.0 // indirect
go.opentelemetry.io/otel v1.35.0 // indirect
go.opentelemetry.io/otel/metric v1.35.0 // indirect
go.opentelemetry.io/otel/trace v1.35.0 // indirect
golang.org/x/net v0.39.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
module github.com/michaeldcanady/servicenow-sdk-go

go 1.23.0

toolchain go1.24.1

require (
github.com/gabriel-vasile/mimetype v1.4.10
github.com/google/go-querystring v1.1.0
github.com/google/uuid v1.6.0
github.com/microsoft/kiota-abstractions-go v1.9.3
github.com/microsoft/kiota-http-go v1.5.4
github.com/microsoft/kiota-serialization-form-go v1.1.2
github.com/microsoft/kiota-serialization-json-go v1.1.2
github.com/microsoft/kiota-serialization-multipart-go v1.1.2
github.com/microsoft/kiota-serialization-text-go v1.1.2
github.com/mozillazg/go-httpheader v0.4.0
github.com/stretchr/testify v1.11.1
github.com/yosida95/uritemplate/v3 v3.0.2
)

require (
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/go-logr/logr v1.4.2 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/std-uritemplate/std-uritemplate/go/v2 v2.0.3 // indirect
github.com/stretchr/objx v0.5.2 // indirect
go.opentelemetry.io/auto/sdk v1.1.0 // indirect
go.opentelemetry.io/otel v1.35.0 // indirect
go.opentelemetry.io/otel/metric v1.35.0 // indirect
go.opentelemetry.io/otel/trace v1.35.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Loading