Skip to content

Commit

Permalink
chore: bump go version to 1.21 (#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhamzeh authored Feb 15, 2024
2 parents 93175fd + 33fe6e4 commit b1ef674
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
24 changes: 22 additions & 2 deletions .github/workflows/main-go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,28 @@ permissions:
contents: read

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version: '>=1.22'
cache-dependency-path: './pkg/go/go.sum'
check-latest: true

- name: Audit dependencies
run: make audit-go

- name: Lint
run: make lint-go

test:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: ['1.21', '1.22']
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
Expand All @@ -36,12 +56,12 @@ jobs:

- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version-file: './pkg/go/go.mod'
go-version: ${{ matrix.go-version }}
cache-dependency-path: './pkg/go/go.sum'
check-latest: true

- name: Build
run: make all-tests-go
run: make test-go

release:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion pkg/go/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/openfga/language/pkg/go

go 1.20
go 1.21.3

require (
github.com/antlr4-go/antlr/v4 v4.13.0
Expand Down

0 comments on commit b1ef674

Please sign in to comment.