From 7a4b6c66ea7ea6b849c607534ddb2b6f53aa98c1 Mon Sep 17 00:00:00 2001 From: Alec Merdler Date: Tue, 12 Mar 2024 13:47:34 -0400 Subject: [PATCH] Use centralized Go version in CI Removes 'GO_VERSION' from our CI config because it is centrally configured in 'authzed/actions/setup-go'. --- .github/workflows/build.yaml | 4 ---- .github/workflows/lint.yaml | 8 -------- 2 files changed, 12 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 5533acf..87e9cd3 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -9,8 +9,6 @@ on: # yamllint disable-line rule:truthy merge_group: types: - "checks_requested" -env: - GO_VERSION: "~1.21.3" jobs: test: name: "Run Integration Tests" @@ -18,8 +16,6 @@ jobs: 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" diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index d318cc7..c6389f2 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -10,8 +10,6 @@ on: # yamllint disable-line rule:truthy merge_group: types: - "checks_requested" -env: - GO_VERSION: "~1.21.3" jobs: go-lint: name: "Lint Go" @@ -19,8 +17,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:go" - name: "Go Mod Tidy" @@ -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: "" @@ -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: