From a1ba0e6b2dbf6fd1959acc4a708d6694c12fc328 Mon Sep 17 00:00:00 2001 From: p4u Date: Fri, 19 Apr 2024 15:51:30 +0200 Subject: [PATCH] update github actions Signed-off-by: p4u --- .github/workflows/main.yml | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2124ee0..41b0778 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 @@ -16,11 +16,6 @@ jobs: - name: Checkout code uses: actions/checkout@v2 - - 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 - $(go env GOPATH)/bin/golangci-lint run --timeout=5m -c .golangci.yml - - name: Go test run: | # we run vet in another step @@ -28,9 +23,9 @@ jobs: # -race can easily make the crypto stuff 10x slower go test -vet=off -timeout=15m -race -covermode atomic -coverprofile=covprofile ./... - - name: Go analyze + - name: Run staticcheck 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 - - ./staticcheck/staticcheck ./... + go install honnef.co/go/tools/cmd/staticcheck@2023.1.7 + staticcheck -debug.version + staticcheck ./... +