|
@@ -11,20 +11,20 @@ jobs:
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
steps:
|
|
|
- name: Install Go
|
|
|
- uses: actions/setup-go@v2
|
|
|
+ uses: actions/setup-go@v3
|
|
|
with:
|
|
|
go-version: ${{ matrix.go-version }}
|
|
|
- name: Checkout code
|
|
|
- uses: actions/checkout@v2
|
|
|
+ uses: actions/checkout@v3
|
|
|
- name: Check formatting
|
|
|
run: diff -u <(echo -n) <(gofmt -d .)
|
|
|
if: ${{ matrix.go-version == '1.x' }}
|
|
|
- name: Run go vet
|
|
|
run: go vet ./...
|
|
|
- name: Run staticcheck
|
|
|
- uses: dominikh/staticcheck-action@v1.1.0
|
|
|
+ uses: dominikh/staticcheck-action@v1.3.0
|
|
|
with:
|
|
|
- version: "2022.1"
|
|
|
+ version: "2023.1.2"
|
|
|
install-go: false
|
|
|
cache-key: ${{ matrix.go-version }}
|
|
|
if: ${{ matrix.go-version == '1.x' }}
|