Skip to content

Commit

Permalink
Use centralized Go version in CI
Browse files Browse the repository at this point in the history
Removes 'GO_VERSION' from our CI config because it is centrally
configured in 'authzed/actions/setup-go'.
  • Loading branch information
alecmerdler committed Mar 12, 2024
1 parent 561fb11 commit 7a4b6c6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
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

0 comments on commit 7a4b6c6

Please sign in to comment.