From 66c2cc82608d68c916773dfe663be2b63679b340 Mon Sep 17 00:00:00 2001 From: Christian Zosel Date: Tue, 13 Jun 2023 07:56:31 +0200 Subject: [PATCH] chore(CI): bump node version (#1116) --- .github/workflows/test.yml | 84 +++++++++++++++++++------------------- 1 file changed, 42 insertions(+), 42 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6b4041c50..9d8d873f8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,47 +9,47 @@ jobs: strategy: matrix: os: [ubuntu-latest] - node-version: [14.x, 16.x, 18.x] + node-version: [14.x, 16.x, 18.x, 20.x] steps: - - uses: actions/checkout@v2 - - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2 - with: - node-version: ${{ matrix.node-version }} - - - name: npm install, test - run: | - yarn - yarn test - - - name: type check - run: | - npm i -g typescript - yarn build-types - [ $(git diff types.d.ts | wc -l) -gt 0 ] && echo 'Diff exists in types.d.ts. Please change jsdoc.' && exit 1 - tsc --noEmit types.d.ts - - - name: install valgrind - run: sudo apt-get install -y valgrind - - - name: benchmark - run: python cachegrind.py node test/benchmark2.js > output.txt - - - name: Download previous benchmark result - uses: actions/cache@v1 - with: - path: ./cache - key: ${{ runner.os }}-${{matrix.node-version}}-benchmark - - - name: Store benchmark result - uses: benchmark-action/github-action-benchmark@v1 - with: - tool: 'customSmallerIsBetter' - output-file-path: output.txt - external-data-json-path: ./cache/benchmark-data.json - alert-threshold: '105%' - fail-on-alert: true - env: - CI: true + - uses: actions/checkout@v2 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + + - name: npm install, test + run: | + yarn + yarn test + + - name: type check + run: | + npm i -g typescript + yarn build-types + [ $(git diff types.d.ts | wc -l) -gt 0 ] && echo 'Diff exists in types.d.ts. Please change jsdoc.' && exit 1 + tsc --noEmit types.d.ts + + - name: install valgrind + run: sudo apt-get install -y valgrind + + - name: benchmark + run: python cachegrind.py node test/benchmark2.js > output.txt + + - name: Download previous benchmark result + uses: actions/cache@v1 + with: + path: ./cache + key: ${{ runner.os }}-${{matrix.node-version}}-benchmark + + - name: Store benchmark result + uses: benchmark-action/github-action-benchmark@v1 + with: + tool: "customSmallerIsBetter" + output-file-path: output.txt + external-data-json-path: ./cache/benchmark-data.json + alert-threshold: "105%" + fail-on-alert: true + env: + CI: true