Skip to content

Commit 66c2cc8

Browse files
authored
chore(CI): bump node version (#1116)
1 parent b809dc1 commit 66c2cc8

File tree

1 file changed

+42
-42
lines changed

1 file changed

+42
-42
lines changed

.github/workflows/test.yml

+42-42
Original file line numberDiff line numberDiff line change
@@ -9,47 +9,47 @@ jobs:
99
strategy:
1010
matrix:
1111
os: [ubuntu-latest]
12-
node-version: [14.x, 16.x, 18.x]
12+
node-version: [14.x, 16.x, 18.x, 20.x]
1313

1414
steps:
15-
- uses: actions/checkout@v2
16-
17-
- name: Use Node.js ${{ matrix.node-version }}
18-
uses: actions/setup-node@v2
19-
with:
20-
node-version: ${{ matrix.node-version }}
21-
22-
- name: npm install, test
23-
run: |
24-
yarn
25-
yarn test
26-
27-
- name: type check
28-
run: |
29-
npm i -g typescript
30-
yarn build-types
31-
[ $(git diff types.d.ts | wc -l) -gt 0 ] && echo 'Diff exists in types.d.ts. Please change jsdoc.' && exit 1
32-
tsc --noEmit types.d.ts
33-
34-
- name: install valgrind
35-
run: sudo apt-get install -y valgrind
36-
37-
- name: benchmark
38-
run: python cachegrind.py node test/benchmark2.js > output.txt
39-
40-
- name: Download previous benchmark result
41-
uses: actions/cache@v1
42-
with:
43-
path: ./cache
44-
key: ${{ runner.os }}-${{matrix.node-version}}-benchmark
45-
46-
- name: Store benchmark result
47-
uses: benchmark-action/github-action-benchmark@v1
48-
with:
49-
tool: 'customSmallerIsBetter'
50-
output-file-path: output.txt
51-
external-data-json-path: ./cache/benchmark-data.json
52-
alert-threshold: '105%'
53-
fail-on-alert: true
54-
env:
55-
CI: true
15+
- uses: actions/checkout@v2
16+
17+
- name: Use Node.js ${{ matrix.node-version }}
18+
uses: actions/setup-node@v2
19+
with:
20+
node-version: ${{ matrix.node-version }}
21+
22+
- name: npm install, test
23+
run: |
24+
yarn
25+
yarn test
26+
27+
- name: type check
28+
run: |
29+
npm i -g typescript
30+
yarn build-types
31+
[ $(git diff types.d.ts | wc -l) -gt 0 ] && echo 'Diff exists in types.d.ts. Please change jsdoc.' && exit 1
32+
tsc --noEmit types.d.ts
33+
34+
- name: install valgrind
35+
run: sudo apt-get install -y valgrind
36+
37+
- name: benchmark
38+
run: python cachegrind.py node test/benchmark2.js > output.txt
39+
40+
- name: Download previous benchmark result
41+
uses: actions/cache@v1
42+
with:
43+
path: ./cache
44+
key: ${{ runner.os }}-${{matrix.node-version}}-benchmark
45+
46+
- name: Store benchmark result
47+
uses: benchmark-action/github-action-benchmark@v1
48+
with:
49+
tool: "customSmallerIsBetter"
50+
output-file-path: output.txt
51+
external-data-json-path: ./cache/benchmark-data.json
52+
alert-threshold: "105%"
53+
fail-on-alert: true
54+
env:
55+
CI: true

0 commit comments

Comments
 (0)