Skip to content

Commit

Permalink
ci: pin Go version
Browse files Browse the repository at this point in the history
Signed-off-by: Nikita Pivkin <[email protected]>
  • Loading branch information
nikpivkin committed Aug 14, 2024
1 parent 418d48d commit 4f6d016
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 5 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/test-bundle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,26 @@ name: test rego bundle
on:
pull_request:
merge_group:

env:
GO_VERSION: "1.21"
GO_VERSION: '1.22'

jobs:
opa-tests:
name: OPA tests
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}

- name: Build bundle
run: make bundle

- name: Setup OPA
uses: ./.github/actions/setup-opa

- name: Check bundle
run: opa inspect bundle.tar.gz
6 changes: 5 additions & 1 deletion .github/workflows/test-go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: Test Go
on:
pull_request:
merge_group:

env:
GO_VERSION: '1.22'

jobs:
build:
name: Test
Expand All @@ -11,7 +15,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
go-version: ${{ env.GO_VERSION }}

- name: Run tests
run: make test
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/test-rego.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ on:
- "**/*.md"
- "LICENSE"
merge_group:

env:
GO_VERSION: "1.21"
GO_VERSION: "1.22"

jobs:
opa-tests:
name: OPA tests
Expand All @@ -35,7 +37,7 @@ jobs:
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
go-version: ${{ env.GO_VERSION }}

- name: Test Rego checks
run: make test-rego

0 comments on commit 4f6d016

Please sign in to comment.