23
23
- ubuntu-20.04
24
24
- macos-12
25
25
- macos-11
26
- cache_reset_counter :
27
- - 0
28
26
node :
29
- - 12
30
- - 16
31
27
- 18
32
28
pnpm :
33
29
- 8
@@ -64,10 +60,26 @@ jobs:
64
60
# uses: mxschmitt/action-tmate@v3
65
61
66
62
- name : Test
67
- if : " ${{ !contains(github.event.head_commit.message, '[skip test]') && contains(matrix.node, '18') }}"
63
+ if : " ${{ !contains(github.event.head_commit.message, '[skip test]') }}"
68
64
run : |
69
65
pnpm run test
70
66
67
+ - name : Setup Node 12
68
+ uses : actions/setup-node@v3
69
+ with :
70
+ node-version : 12
71
+ - name : Smoke Test Node 12
72
+ run : |
73
+ node ./dist/node12/setup-cpp.js --help
74
+
75
+ - name : Setup Node 16
76
+ uses : actions/setup-node@v3
77
+ with :
78
+ node-version : 16
79
+ - name : Smoke Test Node 16
80
+ run : |
81
+ node ./dist/node16/setup-cpp.js --help
82
+
71
83
# Create self-contained executable that bundles Nodejs
72
84
- name : Create Executable
73
85
if : " ${{ contains(matrix.os, 'windows-2022') || contains(matrix.os, 'ubuntu-22.04') || contains(matrix.os, 'macos-12') }}"
@@ -127,8 +139,6 @@ jobs:
127
139
- " ubuntu_20.04_node.dockerfile"
128
140
- " ubuntu_node_legacy.dockerfile"
129
141
- " ubuntu_node.dockerfile"
130
- cache_reset_counter :
131
- - 0
132
142
steps :
133
143
- uses : actions/checkout@v3
134
144
with :
@@ -140,7 +150,7 @@ jobs:
140
150
path : |
141
151
~/.pnpm-store
142
152
D:\.pnpm-store
143
- key : " setupcpp-docker-cache-OS:${{ matrix.os }}-node: ${{ matrix.node }}-pnpm:${{ matrix.pnpm }}-${{ hashFiles('./.npmrc') }}-deps:${{ hashFiles('./package.json') }}-${{ matrix.cache_reset_counter }}"
153
+ key : " setupcpp-docker-cache-OS:${{ matrix.os }}-${{ hashFiles('./.npmrc') }}-deps:${{ hashFiles('./package.json') }}"
144
154
restore-keys : |
145
155
"setupcpp-docker-cache-OS:${{ matrix.os }}"
146
156
0 commit comments