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

ci: pin Go version #214

Merged
merged 1 commit into from
Aug 16, 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
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
7 changes: 5 additions & 2 deletions .github/workflows/verify-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,20 @@ name: Verify Docs
on:
pull_request:
merge_group:

env:
GO_VERSION: '1.22'

jobs:
build:
name: Verify Docs
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: actions/setup-go@v5
with:
go-version-file: go.mod
go-version: ${{ env.GO_VERSION }}

- run: |
make docs
Expand Down