-
-
Notifications
You must be signed in to change notification settings - Fork 398
44 lines (37 loc) 路 1.19 KB
/
reviewdog.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
39
40
41
42
43
44
name: reviewdog on GitHub Action
on: [pull_request]
jobs:
reviewdog:
name: reviewdog
runs-on: ubuntu-latest
steps:
- name: Dump GitHub Context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "${GITHUB_CONTEXT}"
- name: Dump GitHub Event
run: cat "${GITHUB_EVENT_PATH}"
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.13
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v1
- name: Install linters
run: '( cd linters && go get golang.org/x/lint/golint )'
- name: Add $GOPATH/bin
run: |
echo ::add-path::$(go env GOPATH)
echo $PATH
- name: Setup reviewdog
run: |
echo $PATH
sudo curl -sfL https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh| sh -s -- -b /usr/local/bin
# go install ./cmd/reviewdog
- name: Run reviewdog
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
PATH=$(go env GOPATH)/bin:$PATH
reviewdog -reporter=github-pr-check -runners=golint,govet