From c0bc79e949444ed96b2f115f8a86e4e8a995331f Mon Sep 17 00:00:00 2001 From: Filip Skokan Date: Wed, 1 Sep 2021 15:45:03 +0200 Subject: [PATCH] ci: experimental builds with pending and throwing deprecations --- .github/workflows/test.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index bbd3c006..a235d8d4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -64,6 +64,7 @@ jobs: include: - experimental: true node-version: '>=15' + node-options: '--throw-deprecation --pending-deprecation' runs-on: ubuntu-latest steps: @@ -95,12 +96,18 @@ jobs: key: dist-${{ hashFiles('src/**/*.ts') }}-${{ hashFiles('tsconfig/*.json') }}-${{ hashFiles('.github/workflows/*.yml') }}-${{ hashFiles('package.json') }} - name: Test Node.js crypto run: npm run test + env: + NODE_OPTIONS: ${{ matrix.node-options }} - name: Test Node.js crypto w/ CryptoKey run: npm run test-cryptokey if: ${{ !startsWith(matrix.node-version, '14') && !startsWith(matrix.node-version, '12') }} + env: + NODE_OPTIONS: ${{ matrix.node-options }} - name: Test Web Cryptography API run: npm run test-webcrypto if: ${{ !startsWith(matrix.node-version, '14') && !startsWith(matrix.node-version, '12') }} + env: + NODE_OPTIONS: ${{ matrix.node-options }} - run: git reset HEAD --hard test-deno: