generated from reviewdog/action-template
-
-
Notifications
You must be signed in to change notification settings - Fork 3
38 lines (37 loc) · 1 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Test
on:
push:
branches:
- master
pull_request:
jobs:
test-check:
name: runner / staticcheck (github-check)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- uses: actions/setup-go@v5
with:
go-version: "1.18"
- uses: ./
with:
github_token: ${{ secrets.github_token }}
reporter: github-check
level: info
target: ./testdata/
test-pr-review:
if: github.event_name == 'pull_request'
name: runner / staticcheck (github-pr-review)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- uses: actions/setup-go@v5
with:
go-version: "1.18"
- uses: ./
with:
github_token: ${{ secrets.github_token }}
reporter: github-pr-review
level: error
workdir: ./testdata
reviewdog_flags: -filter-mode=file