From e6d1847dc2d5d04a2d6e075b1138018ffab56543 Mon Sep 17 00:00:00 2001 From: Paul Miller Date: Fri, 17 Jan 2025 07:23:21 +0000 Subject: [PATCH] ci: polyfill job --- .github/workflows/test-js-polyfill.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/test-js-polyfill.yml diff --git a/.github/workflows/test-js-polyfill.yml b/.github/workflows/test-js-polyfill.yml new file mode 100644 index 0000000..43ad0fb --- /dev/null +++ b/.github/workflows/test-js-polyfill.yml @@ -0,0 +1,21 @@ +name: Run JS tests with polyfill +on: + - push + - pull_request +jobs: + node_polyfill: Node v${{ matrix.node }} + runs-on: ubuntu-24.04-arm + strategy: + matrix: + node: [18.20.5, 20.18.1, 22.13.0] # LTS on Jan 2025. Hardcoded is more secure + steps: + - uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2 # v4 + - name: Use Node.js ${{ matrix.node }} + uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4 + with: + registry-url: "https://registry.npmjs.org" + cache: npm + node-version: ${{ matrix.node }} + - run: npm install + - run: npm run build --if-present + - run: npm run test:webcrypto