Skip to content

Commit c5f9275

Browse files
authored
Reviewdog runners for eslint/tsc (#2)
* reviewdog runners for eslint/tsc * fix yarn caching
1 parent 967633a commit c5f9275

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/reviewdog.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Reviewdog
2+
on: [pull_request]
3+
4+
jobs:
5+
lint:
6+
name: Lint Checks
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- uses: actions/cache@v3
11+
id: yarn-cache
12+
with:
13+
path: "./.yarn/cache"
14+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
15+
restore-keys: |
16+
${{ runner.os }}-yarn-
17+
18+
- name: Install Dependencies
19+
run: yarn install --check-cache
20+
21+
- uses: reviewdog/action-eslint@v1
22+
name: ESLint Runner
23+
with:
24+
reporter: github-pr-review
25+
level: warning
26+
27+
- uses: EPMatt/reviewdog-action-tsc@v1
28+
name: TSC Runner
29+
with:
30+
github_token: ${{ secrets.github_token }}
31+
reporter: github-pr-review
32+
level: warning

0 commit comments

Comments
 (0)