File tree 5 files changed +21
-27
lines changed
5 files changed +21
-27
lines changed Original file line number Diff line number Diff line change 34
34
node-version : 15
35
35
- name : Install production and development dependencies
36
36
run : |
37
- npm install
37
+ npm install || npm install || npm install
38
38
- name : Run benchmarks
39
39
run : |
40
40
npm run benchmark
Original file line number Diff line number Diff line change 34
34
node-version : 15
35
35
- name : Install production and development dependencies
36
36
run : |
37
- npm install
37
+ npm install || npm install || npm install
38
38
- name : Run examples
39
39
run : |
40
40
npm run examples
Original file line number Diff line number Diff line change @@ -21,6 +21,9 @@ name: build
21
21
22
22
# Workflow triggers:
23
23
on :
24
+ schedule :
25
+ # * is a special character in YAML so you have to quote this string
26
+ - cron : ' 30 1 * * 6'
24
27
workflow_dispatch :
25
28
26
29
# Workflow jobs:
@@ -36,18 +39,12 @@ jobs:
36
39
node-version : 15
37
40
- name : Install production and development dependencies
38
41
id : install
39
- uses : nick-invision/retry@v2
40
- with :
41
- timeout_minutes : 2
42
- max_attempts : 3
43
- command : npm install
42
+ run : |
43
+ npm install || npm install || npm install
44
44
- name : Run tests
45
45
id : tests
46
- uses : nick-invision/retry@v2
47
- with :
48
- timeout_minutes : 3
49
- max_attempts : 2
50
- command : npm test
46
+ run : |
47
+ npm test || npm test || npm test
51
48
- uses : act10ns/slack@v1
52
49
with :
53
50
status : ${{ job.status }}
Original file line number Diff line number Diff line change @@ -21,6 +21,9 @@ name: coverage
21
21
22
22
# Workflow triggers:
23
23
on :
24
+ workflow_run :
25
+ workflows : ["build"]
26
+ types : [completed]
24
27
workflow_dispatch :
25
28
26
29
# Workflow jobs:
@@ -33,17 +36,11 @@ jobs:
33
36
with :
34
37
node-version : 15
35
38
- name : Install production and development dependencies
36
- uses : nick-invision/retry@v2
37
- with :
38
- timeout_minutes : 2
39
- max_attempts : 3
40
- command : npm install
39
+ run : |
40
+ npm install || npm install || npm install
41
41
- name : Calculate test coverage
42
- uses : nick-invision/retry@v2
43
- with :
44
- timeout_minutes : 3
45
- max_attempts : 2
46
- command : npm run test-cov
42
+ run : |
43
+ npm run test-cov || npm run test-cov || npm run test-cov
47
44
- name : Upload coverage to Codecov
48
45
id : upload
49
46
uses : codecov/codecov-action@v1
Original file line number Diff line number Diff line change @@ -21,6 +21,9 @@ name: Test Installing Dependencies
21
21
22
22
# Workflow triggers:
23
23
on :
24
+ schedule :
25
+ # * is a special character in YAML so you have to quote this string
26
+ - cron : ' 30 1 * * 6'
24
27
workflow_run :
25
28
workflows : ["Publish Package"]
26
29
types : [completed]
38
41
with :
39
42
node-version : 15
40
43
- name : Install production dependencies via npm
41
- uses : nick-invision/retry@v2
42
- with :
43
- timeout_minutes : 2
44
- max_attempts : 3
45
- command : npm install --only=prod
44
+ run : |
45
+ npm install --only=prod || npm install --only=prod || npm install --only=prod
46
46
- uses : act10ns/slack@v1
47
47
with :
48
48
status : ${{ job.status }}
You can’t perform that action at this time.
0 commit comments