Skip to content

Commit

Permalink
Bump go to 1.22 and use v4 golangci-lint action
Browse files Browse the repository at this point in the history
  • Loading branch information
julieta-311 committed Feb 21, 2024
1 parent 5d499c7 commit 49a90c7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ jobs:

build:
runs-on: ubuntu-latest
strategy:
matrix:
go: [ '1.20', '1.21' ]
steps:
- name: Cache go deps
uses: actions/cache@v3
Expand All @@ -25,10 +22,10 @@ jobs:
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
cache: true
go-version: ${{ matrix.go }}
go-version: 1.22
env:
GOFLAGS: -mod=mod

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
steps:
- uses: actions/setup-go@v4
with:
go-version: 1.21
go-version: 1.22

- uses: actions/checkout@v4

Expand All @@ -38,7 +38,7 @@ jobs:
--proto_path=.
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v4
with:
args: --enable lll
version: latest
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/julieta-311/proglog

go 1.21
go 1.22

require (
github.com/casbin/casbin v1.9.1
Expand Down

0 comments on commit 49a90c7

Please sign in to comment.