From 50ae613d481346afe633771a4c91c76699904929 Mon Sep 17 00:00:00 2001 From: Siarhei Fedartsou Date: Sat, 12 Nov 2022 11:38:55 +0100 Subject: [PATCH] wip --- .github/workflows/osrm-backend.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/.github/workflows/osrm-backend.yml b/.github/workflows/osrm-backend.yml index 7d362ed26..f84174190 100644 --- a/.github/workflows/osrm-backend.yml +++ b/.github/workflows/osrm-backend.yml @@ -635,10 +635,39 @@ jobs: ./src/benchmarks/packedvector-bench ./src/benchmarks/rtree-bench ../test/data/monaco.osrm.ramIndex ../test/data/monaco.osrm.fileIndex ../test/data/monaco.osrm.nbg_nodes popd + + - name: Use Node 16 + if: ${{ matrix.NODE_PACKAGE_TESTS_ONLY == 'ON' && matrix.ENABLE_APPLE_SILICON != 'ON' }} + uses: actions/setup-node@v3 + with: + node-version: 16 + - run: node --version - name: Run Node package tests only if: ${{ matrix.NODE_PACKAGE_TESTS_ONLY == 'ON' && matrix.ENABLE_APPLE_SILICON != 'ON' }} run: | npm run nodejs-tests + - name: Use Node 18 + if: ${{ matrix.NODE_PACKAGE_TESTS_ONLY == 'ON' && matrix.ENABLE_APPLE_SILICON != 'ON' }} + uses: actions/setup-node@v3 + with: + node-version: 18 + - run: node --version + - name: Run Node package tests only + if: ${{ matrix.NODE_PACKAGE_TESTS_ONLY == 'ON' && matrix.ENABLE_APPLE_SILICON != 'ON' }} + run: | + npm run nodejs-tests + - name: Use Node latest + if: ${{ matrix.NODE_PACKAGE_TESTS_ONLY == 'ON' && matrix.ENABLE_APPLE_SILICON != 'ON' }} + uses: actions/setup-node@v3 + with: + node-version: latest + - run: node --version + - name: Run Node package tests only + if: ${{ matrix.NODE_PACKAGE_TESTS_ONLY == 'ON' && matrix.ENABLE_APPLE_SILICON != 'ON' }} + run: | + npm run nodejs-tests + - run: nvm --version + - name: Upload test logs uses: actions/upload-artifact@v3 if: failure()