Skip to content

Commit 4d39a99

Browse files
committed
Trying to use GH action
1 parent d67059f commit 4d39a99

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/workflows/build.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,18 @@ on:
88
types: [opened, synchronize, reopened]
99

1010
jobs:
11+
check:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v2
16+
- uses: reviewdog/action-staticcheck@v1
17+
with:
18+
github_token: ${{ secrets.github_token }}
19+
reporter: github-pr-review
20+
filter_mode: nofilter
21+
fail_on_error: true
22+
1123
build:
1224
runs-on: ubuntu-latest
1325
strategy:
@@ -23,8 +35,6 @@ jobs:
2335
go-version: "${{ matrix.go }}"
2436
- name: Build
2537
run: |
26-
go install honnef.co/go/tools/cmd/staticcheck@latest
27-
staticcheck ./...
2838
go vet ./...
2939
go test -v ./...
3040
go build ./...

0 commit comments

Comments
 (0)