Skip to content

Commit a3f2b88

Browse files
committed
chore: replace staticcheck installation with action
- Removed manual installation of staticcheck. - Integrated dominikh/staticcheck-action for improved static analysis.
1 parent eae8078 commit a3f2b88

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

.github/workflows/atomiccache-test.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,14 @@ jobs:
2424
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
2525
restore-keys: |
2626
${{ runner.os }}-go-
27-
- name: Install staticcheck
28-
run: go install honnef.co/go/tools/cmd/staticcheck@latest
2927
- name: Vet
3028
run: go vet ./...
3129
- name: Test
3230
run: go test ./...
3331
- name: Test (race detector)
3432
if: matrix.os == 'ubuntu-latest'
3533
run: go test -race ./...
36-
- name: Staticcheck test
37-
run: staticcheck ./...
34+
- uses: dominikh/staticcheck-action@v1.3.01
35+
with:
36+
version: "2022.1.1"
3837

0 commit comments

Comments
 (0)