Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use centralized Go version in CI #168

Merged
merged 1 commit into from
Mar 12, 2024
Merged
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
4 changes: 0 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,13 @@ on: # yamllint disable-line rule:truthy
merge_group:
types:
- "checks_requested"
env:
GO_VERSION: "~1.21.3"
jobs:
test:
name: "Run Integration Tests"
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v3"
- uses: "authzed/actions/setup-go@main"
with:
go-version: "${{ env.GO_VERSION }}"
- uses: "authzed/action-spicedb@v1"
- name: "Unit tests"
run: "go run magefile.go test:integration"
8 changes: 0 additions & 8 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,13 @@ on: # yamllint disable-line rule:truthy
merge_group:
types:
- "checks_requested"
env:
GO_VERSION: "~1.21.3"
jobs:
go-lint:
name: "Lint Go"
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v3"
- uses: "authzed/actions/setup-go@main"
with:
go-version: "${{ env.GO_VERSION }}"
- name: "Lint Go"
run: "go run magefile.go lint:go"
- name: "Go Mod Tidy"
Expand All @@ -34,8 +30,6 @@ jobs:
steps:
- uses: "actions/checkout@v3"
- uses: "authzed/actions/setup-go@main"
with:
go-version: "${{ env.GO_VERSION }}"
- uses: "chainguard-dev/actions/nodiff@main"
with:
path: ""
Expand All @@ -46,8 +40,6 @@ jobs:
steps:
- uses: "actions/checkout@v3"
- uses: "authzed/actions/setup-go@main"
with:
go-version: "${{ env.GO_VERSION }}"
- name: "Lint Go"
run: "go run magefile.go lint:extra"
codeql:
Expand Down
Loading