Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions .github/workflows/test_node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@ jobs:
node-version-file: package.json

# We need to skip the fallback download because downloading will fail on release branches because the new version isn't available yet.
- run: SENTRYCLI_SKIP_DOWNLOAD=1 yarn install --frozen-lockfile
# We have to use npm here because yarn fails on the non-existing existing optionalDependency version:
# https://github.com/yarnpkg/berry/issues/2425#issuecomment-1627807326
- run: SENTRYCLI_SKIP_DOWNLOAD=1 npm install

- run: yarn check:types
- run: npm run check:types

test_node:
strategy:
Expand All @@ -42,13 +44,12 @@ jobs:
node-version: ${{ matrix.node-version }}

# We need to skip the fallback download because downloading will fail on release branches because the new version isn't available yet.
- run: SENTRYCLI_SKIP_DOWNLOAD=1 yarn install --frozen-lockfile
if: matrix.node-version != '10.x' && matrix.node-version != '12.x'
# We have to use npm here because yarn fails on the non-existing existing optionalDependency version:
# https://github.com/yarnpkg/berry/issues/2425#issuecomment-1627807326
- run: SENTRYCLI_SKIP_DOWNLOAD=1 npm install

# older node versions need an older nft
- run: |
SENTRYCLI_SKIP_DOWNLOAD=1 yarn install --ignore-engines --frozen-lockfile
SENTRYCLI_SKIP_DOWNLOAD=1 yarn add @vercel/nft@0.22.1 --ignore-engines
- run: SENTRYCLI_SKIP_DOWNLOAD=1 npm install @vercel/nft@0.22.1
if: matrix.node-version == '10.x' || matrix.node-version == '12.x'

- run: yarn test
- run: npm test