File tree Expand file tree Collapse file tree 1 file changed +33
-9
lines changed Expand file tree Collapse file tree 1 file changed +33
-9
lines changed Original file line number Diff line number Diff line change 10
10
- " package.json"
11
11
- " **/*.ts"
12
12
- " **/*.js"
13
+ workflow_dispatch :
13
14
14
15
jobs :
15
16
testing :
16
17
runs-on : ${{ matrix.os }}
17
18
strategy :
19
+ fail-fast : false
18
20
matrix :
19
21
os : [ ubuntu-latest, macos-latest, windows-latest ]
20
- node-version : [ 12.x, 14.x ]
22
+ node-version : [ 12.x, 14.x, 16.x ]
21
23
name : Testing
22
24
steps :
23
- - uses : actions/checkout@v2
24
- - uses : actions/setup-node@v2.1.4
25
- name : Use Node.js ${{ matrix.node-version }}
25
+ - name : Check out code base
26
+ if : github.event_name == 'push' || github.event_name == 'workflow_dispatch'
27
+ uses : actions/checkout@v2
28
+ with :
29
+ fetch-depth : 0
30
+
31
+ - name : Check out code base
32
+ if : github.event_name == 'pull_request'
33
+ uses : actions/checkout@v2
34
+ with :
35
+ fetch-depth : 0
36
+ ref : ${{ github.event.pull_request.head.sha }}
37
+
38
+ - name : Set up Node.js ${{ matrix.node-version }}
39
+ uses : actions/setup-node@v2.1.4
26
40
with :
27
41
node-version : ${{ matrix.node-version }}
28
42
registry-url : ' https://registry.npmjs.org'
29
- - run : yarn install
30
- - run : yarn run test
31
- - run : yarn run build
32
- - run : yarn run cli:install
33
- - run : cairn
43
+
44
+ - name : Get dependencies
45
+ run : yarn install
46
+
47
+ - name : Run test
48
+ run : yarn run test --coverage
49
+
50
+ - name : Run build
51
+ run : yarn run build
52
+
53
+ - name : Install cli
54
+ run : yarn run cli:install
55
+
56
+ - name : Run cli
57
+ run : cairn
You can’t perform that action at this time.
0 commit comments