Skip to content

Commit 8162289

Browse files
committed
ci: 🎡 add linting github action
1 parent 0e0367c commit 8162289

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

.github/workflows/lint_pr.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Lint PR Changed Files
2+
on:
3+
# by adding a schedule task to this workflow we will automatically
4+
# begin serializing read-only runs and handling them. The cron job
5+
# below is set to run every 15 minutes, GitHub will ignore anything
6+
# under 10 minutes and run every 10 minutes anyway.
7+
schedule:
8+
- cron: '*/30 * * * *'
9+
pull_request:
10+
types:
11+
- opened
12+
- synchronize
13+
- closed
14+
jobs:
15+
lint:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v2
19+
- uses: bradennapier/[email protected]
20+
with:
21+
reportIgnoredFiles: true
22+
reportWarningsAsErrors: true

.github/workflows/pull_request_ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
steps:
1515
- uses: actions/checkout@v2
1616
- name: Use Node.js ${{ matrix.node-version }}
17-
uses: actions/setup-node@v1
17+
uses: actions/setup-node@v2
1818
with:
1919
node-version: ${{ matrix.node-version }}
2020
- name: npm install, build, and test

0 commit comments

Comments
 (0)