-
Notifications
You must be signed in to change notification settings - Fork 251
36 lines (34 loc) · 956 Bytes
/
main.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
name: reviewdog
on:
pull_request:
types: ['opened', 'ready_for_review', 'reopened', 'synchronize']
jobs:
node-checks:
name: Node checks
runs-on: ubuntu-latest
if: github.event.pull_request.draft == false
steps:
- uses: actions/setup-go@v5
with:
go-version: '1.23'
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'yarn'
- run: make yarn
- run: 'echo "nodeLinker: node-modules" >>.yarnrc.yml'
- run: yarn install
- uses: reviewdog/action-eslint@v1
with:
reporter: github-pr-review
level: warning
fail_on_error: true
- uses: reviewdog/action-stylelint@v1
with:
github_token: ${{ secrets.github_token }}
reporter: github-pr-review
level: warning
fail_on_error: true
- name: tsc
run: yarn run check