File tree Expand file tree Collapse file tree 2 files changed +12
-9
lines changed Expand file tree Collapse file tree 2 files changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -45,13 +45,13 @@ jobs:
45
45
path : npm.zip
46
46
retention-days : 1
47
47
48
- smoke-tests-esm :
49
- name : " Smoke tests (ESM )"
48
+ smoke-tests-commonjs :
49
+ name : " Smoke tests (CommonJS )"
50
50
needs : build
51
51
runs-on : ubuntu-22.04
52
52
strategy :
53
53
matrix :
54
- node-version : [18 .x]
54
+ node-version : [7 .x]
55
55
steps :
56
56
- name : Checkout repo
57
57
uses : actions/checkout@v3
@@ -72,17 +72,17 @@ jobs:
72
72
73
73
- name : Run smoke tests
74
74
run : |
75
- cd tests/smoke/esm
75
+ cd tests/smoke/commonjs
76
76
npm i
77
77
npm start
78
78
79
- smoke-tests-commonjs :
80
- name : " Smoke tests (commonjs )"
79
+ smoke-tests-esm :
80
+ name : " Smoke tests (ESM )"
81
81
needs : build
82
82
runs-on : ubuntu-22.04
83
83
strategy :
84
84
matrix :
85
- node-version : [7 .x]
85
+ node-version : [18 .x]
86
86
steps :
87
87
- name : Checkout repo
88
88
uses : actions/checkout@v3
@@ -103,6 +103,6 @@ jobs:
103
103
104
104
- name : Run smoke tests
105
105
run : |
106
- cd tests/smoke/commonjs
106
+ cd tests/smoke/esm
107
107
npm i
108
108
npm start
Original file line number Diff line number Diff line change @@ -133,4 +133,7 @@ const run = async () => {
133
133
console . log ( "success" , process . versions . node ) ;
134
134
} ;
135
135
136
- run ( ) ;
136
+ run ( ) . catch ( ( e ) => {
137
+ console . error ( e ) ;
138
+ process . exitCode = 1 ;
139
+ } ) ;
You can’t perform that action at this time.
0 commit comments