Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
matrixik committed Sep 27, 2022
1 parent e104167 commit 57c1af4
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [1.16.x, 1.x]
go-version: [1.18.x, 1.x]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 1
- uses: WillAbides/setup-go-faster@v1
with:
go-version: ${{ matrix.go-version }}

- uses: actions/cache@v2
- uses: actions/cache@v3
with:
# In order:
# * Module download cache
Expand All @@ -48,29 +48,23 @@ jobs:
go test -race -coverprofile=coverage.out -covermode=atomic
go tool cover -func=coverage.out
- uses: codecov/codecov-action@v2
- uses: codecov/codecov-action@v3
with:
files: ./coverage.out

lint:
name: "Run static analysis"
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 1
- uses: WillAbides/setup-go-faster@v1
with:
go-version: "1.x"

- run: "GO111MODULE=on go get honnef.co/go/tools/cmd/staticcheck"
- run: "go vet ./..."

- uses: actions/cache@v2
- uses: dominikh/staticcheck-action@v1
with:
path: ~/.cache/staticcheck
key: staticcheck-${{ github.sha }}
restore-keys: |
staticcheck-
- run: "go vet ./..."
- run: "$(go env GOPATH)/bin/staticcheck ./..."
version: "2022.1.3"

0 comments on commit 57c1af4

Please sign in to comment.