19
19
vscode-version : [minimum, stable, insiders]
20
20
env :
21
21
VSCODE_TEST_VERSION : ${{ matrix.vscode-version }}
22
+ NODE_OPTIONS : ' --max-old-space-size=8192'
22
23
steps :
23
24
- uses : actions/checkout@v2
24
25
- name : Use Node.js ${{ matrix.node-version }}
@@ -29,12 +30,12 @@ jobs:
29
30
- run : npm run vscode:prepublish
30
31
- name : Tests
31
32
uses : GabrielBB/xvfb-action@v1
32
- # `NODE_OPTIONS` should be isolated because of https://github.com/codecov/uploader/issues/475
33
- env :
34
- NODE_OPTIONS : ' --max-old-space-size=8192'
35
33
with :
36
34
run : npm test
37
35
- name : Code coverage
36
+ env :
37
+ # Unset NODE_OPTIONS because of https://github.com/codecov/uploader/issues/475
38
+ NODE_OPTIONS : ' '
38
39
if : ${{ github.repository == 'aws/aws-toolkit-vscode' && ( github.ref == 'master' || github.event_name == 'pull_request' ) }}
39
40
uses : codecov/codecov-action@v2
40
41
with :
51
52
vscode-version : [stable, insiders]
52
53
env :
53
54
VSCODE_TEST_VERSION : ${{ matrix.vscode-version }}
55
+ NODE_OPTIONS : ' --max-old-space-size=8192'
54
56
steps :
55
57
- uses : actions/checkout@v2
56
58
- name : Use Node.js ${{ matrix.node-version }}
@@ -60,11 +62,11 @@ jobs:
60
62
- run : npm ci
61
63
- run : npm run vscode:prepublish
62
64
- name : Tests
63
- # `NODE_OPTIONS` should be isolated because of https://github.com/codecov/uploader/issues/475
64
- env :
65
- NODE_OPTIONS : ' --max-old-space-size=8192'
66
65
run : npm test
67
66
- name : Code coverage
67
+ env :
68
+ # Unset NODE_OPTIONS because of https://github.com/codecov/uploader/issues/475
69
+ NODE_OPTIONS : ' '
68
70
if : ${{ github.repository == 'aws/aws-toolkit-vscode' && ( github.ref == 'master' || github.event_name == 'pull_request' ) }}
69
71
uses : codecov/codecov-action@v2
70
72
with :
0 commit comments