Skip to content

Commit

Permalink
ci: update go
Browse files Browse the repository at this point in the history
Signed-off-by: l1b0k <[email protected]>
  • Loading branch information
l1b0k committed Jan 11, 2024
1 parent c91a14e commit d8a31ce
Showing 1 changed file with 11 additions and 23 deletions.
34 changes: 11 additions & 23 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,10 @@ jobs:
go-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.20.6
- uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
go-version: 1.21.3
- name: Test
run: |
sudo go test -tags default_build,privileged -v ./...
Expand All @@ -39,16 +33,10 @@ jobs:
go-mod:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.20.6
- uses: actions/cache@v3
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
go-version: 1.21.3
- name: Check module vendoring
run: |
go mod tidy
Expand All @@ -59,20 +47,20 @@ jobs:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.20.6
go-version: 1.21.3
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.53
version: v1.55
args: --config=.golangci.yml

super-linter:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Lint Code Base
uses: super-linter/[email protected]
env:
Expand Down

0 comments on commit d8a31ce

Please sign in to comment.