Skip to content

Commit 5d213da

Browse files
committed
Improve CI workflow
1 parent 5aba8b3 commit 5d213da

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

.github/workflows/main.yml

+10-6
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
11
name: CI
22
on:
3-
- push
4-
- pull_request
3+
push:
4+
branches:
5+
- master
6+
pull_request:
57
jobs:
68
lint:
79
name: Run awesome-lint
810
runs-on: ubuntu-latest
911
steps:
10-
- uses: actions/checkout@v2
11-
- uses: actions/setup-node@v2
12+
- uses: actions/checkout@v3
1213
with:
13-
node-version: '16'
14-
- run: npm install awesome-lint
14+
fetch-depth: 0
15+
- uses: actions/setup-node@v3
16+
with:
17+
node-version: latest
18+
- run: npm install
1519
- run: npm test

0 commit comments

Comments
 (0)