Skip to content

Commit

Permalink
update github actions
Browse files Browse the repository at this point in the history
Signed-off-by: p4u <pau@dabax.net>
  • Loading branch information
p4u committed Apr 19, 2024
1 parent 7f3a206 commit b264815
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
go-tests:
runs-on: self-hosted
container:
image: golang:1.16.5
image: golang:1.22.2
defaults:
run:
shell: bash
Expand All @@ -18,7 +18,7 @@ jobs:

- name: Lint
run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.30.0
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.57.2
$(go env GOPATH)/bin/golangci-lint run --timeout=5m -c .golangci.yml
- name: Go test
Expand All @@ -32,5 +32,5 @@ jobs:
run: |
diff -u <(echo -n) <(gofmt -s -d $(git ls-files '*.go'))
go vet ./...
curl -L https://github.com/dominikh/go-tools/releases/download/2021.1/staticcheck_linux_amd64.tar.gz | tar -xzf -
curl -L https://github.com/dominikh/go-tools/releases/download/2023.1/staticcheck_linux_amd64.tar.gz | tar -xzf -
./staticcheck/staticcheck ./...

0 comments on commit b264815

Please sign in to comment.