File tree 2 files changed +16
-8
lines changed
2 files changed +16
-8
lines changed Original file line number Diff line number Diff line change 1
1
name : run-e2e-tests
2
2
on :
3
- workflow_dispatch : {}
3
+ # workflow_dispatch: {}
4
+ # TODO: remove this. This is just temporary to test matrix strategy w/ e2e tests
5
+ push :
6
+ branches :
7
+ - chore/run-e2e-multiple-runtimes
8
+
4
9
jobs :
5
10
run :
6
11
# ########################
@@ -13,16 +18,16 @@ jobs:
13
18
permissions :
14
19
id-token : write # needed to interact with GitHub's OIDC Token endpoint.
15
20
contents : read
21
+ strategy :
22
+ matrix :
23
+ nodeRuntime : ['12', '14']
16
24
steps :
17
25
- name : " Checkout"
18
26
uses : actions/checkout@v2
19
- # ########################
20
- # Release new version
21
- # ########################
22
- - name : " Use NodeJS 14"
27
+ - name : " Setup NodeJS ${{ matrix.nodeRuntime }}"
23
28
uses : actions/setup-node@v2
24
29
with :
25
- node-version : ' 14 '
30
+ node-version : ${{ matrix.nodeRuntime }}
26
31
- name : Install packages
27
32
run : |
28
33
npm ci
33
38
role-to-assume : ${{ secrets.AWS_ROLE_ARN_TO_ASSUME }}
34
39
aws-region : eu-west-1
35
40
- name : Run integration tests
36
- run : npm run lerna-test:e2e
41
+ run : |
42
+ export RUNTIME=:nodejs${{ matrix.nodeRuntime }}x
43
+ echo $RUNTIME
44
+ npm run lerna-test:e2e
37
45
- name : Test packaging
38
46
run : |
39
47
npm run lerna-package
Original file line number Diff line number Diff line change 15
15
"test:unit" : " jest --group=unit --detectOpenHandles --coverage --verbose" ,
16
16
"test:e2e:nodejs12x" : " RUNTIME=nodejs12x jest --group=e2e/logger" ,
17
17
"test:e2e:nodejs14x" : " RUNTIME=nodejs14x jest --group=e2e/logger" ,
18
- "test:e2e" : " concurrently \" npm:test: e2e:nodejs12x \" \" npm:test:e2e:nodejs14x \" " ,
18
+ "test:e2e" : " jest --group= e2e/logger " ,
19
19
"watch" : " jest --watch" ,
20
20
"build" : " tsc" ,
21
21
"lint" : " eslint --ext .ts --fix --no-error-on-unmatched-pattern src tests" ,
You can’t perform that action at this time.
0 commit comments