Skip to content

Commit

Permalink
CI: Update golangci-lint and github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelEischer committed Nov 11, 2023
1 parent e1d734b commit 34ddcea
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,26 @@ on:
pull_request:

env:
latest_go: "1.19.x"
latest_go: "1.21.x"

jobs:
lint:
name: lint
runs-on: ubuntu-latest
steps:
- name: Set up Go ${{ env.latest_go }}
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: ${{ env.latest_go }}

- name: Check out code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
version: v1.49
version: v1.55
args: --verbose --timeout 5m

- name: Check go.mod/go.sum
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@ jobs:
strategy:
matrix:
include:
- go: 1.19.x
- go: 1.21.x
- go: 1.12.x

name: Build Go ${{ matrix.go }}
runs-on: ubuntu-latest
steps:
- name: Set up Go ${{ matrix.go }}
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}

- name: Check out code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Build
run: |
Expand Down

0 comments on commit 34ddcea

Please sign in to comment.