File tree Expand file tree Collapse file tree 2 files changed +32
-22
lines changed Expand file tree Collapse file tree 2 files changed +32
-22
lines changed Original file line number Diff line number Diff line change 1- name : Pull request
1+ name : pr-master
22
33on :
4- pull_request :
5- branches : [master, beta ]
4+ push :
5+ branches : [master]
66
77jobs :
8- pr :
9- name : Pull request
10- runs-on : ubuntu-latest
8+ ci :
9+ runs-on : ${{ matrix.os }}
10+
11+ strategy :
12+ matrix :
13+ os : [ubuntu-latest]
14+ node : [16]
1115
1216 steps :
13- - name : Checkout
14- uses : actions/checkout@v2
15- - name : Use Node.js ${{ matrix.node-version }}
16- uses : actions/setup-node@v1
17- with :
18- node-version : 16.x
19- - name : Install dependencies
20- run : npm install
21- - name : Lint
22- run : npm run lint
23- - name : Test
24- run : npm run test:unit --if-present
17+ - name : Checkout 🛎
18+ uses : actions/checkout@v3
19+ with :
20+ fetch-depth : 0
21+
22+ - name : Setup node env 🏗
23+ uses : actions/setup-node@v3
24+ with :
25+ node-version : ${{ matrix.node }}
26+ check-latest : true
27+
28+ - name : Install dependencies 📦
29+ run : npm install
30+
31+ - name : Run linter 👀
32+ run : npm run lint-fix
33+
34+ - name : Run tests 🧪
35+ run : npm run test:unit-coverage --if-present
Original file line number Diff line number Diff line change @@ -2,8 +2,7 @@ name: release-master
22
33on :
44 push :
5- branches :
6- - master
5+ branches : [master]
76
87jobs :
98 ci :
@@ -16,12 +15,12 @@ jobs:
1615
1716 steps :
1817 - name : Checkout 🛎
19- uses : actions/checkout@v2
18+ uses : actions/checkout@v3
2019 with :
2120 fetch-depth : 0
2221
2322 - name : Setup node env 🏗
24- uses : actions/setup-node@v2.5.1
23+ uses : actions/setup-node@v3
2524 with :
2625 node-version : ${{ matrix.node }}
2726 check-latest : true
You can’t perform that action at this time.
0 commit comments