Skip to content

fix(sdk-node)!: fixes for and fail-fast on Resource creation from config file #19761

fix(sdk-node)!: fixes for and fail-fast on Resource creation from config file

fix(sdk-node)!: fixes for and fail-fast on Resource creation from config file #19761

Workflow file for this run

name: Unit Tests
on:
push:
branches:
- main
pull_request:
merge_group:
permissions:
contents: read
jobs:
node-tests:
strategy:
fail-fast: false
matrix:
node_version:
- 18.19.0
- 18
- 20.6.0
- 20
- 22
- 24
- 26
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
with:
persist-credentials: false
- uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0
with:
cache: 'npm'
cache-dependency-path: |
package-lock.json
node-version: ^26.3.0
- name: Bootstrap
run: npm ci --ignore-scripts
- name: Build 🔧
run: npm run compile
# The compile above runs on the repo's pinned build Node (^26.3.0).
# Switch to the matrix Node version so tests exercise every supported
# runtime.
- uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0
with:
node-version: ${{ matrix.node_version }}
- run: npm test
- name: Report Coverage
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v6.0.2
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
verbose: true
node-windows-tests:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
with:
persist-credentials: false
- uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0
with:
cache: 'npm'
cache-dependency-path: |
package-lock.json
node-version: ^26.3.0
- name: Bootstrap
run: npm ci --ignore-scripts
- name: Build 🔧
run: |
npm config set script-shell "C:\\Program Files\\git\\bin\\bash.exe"
npm run compile
- name: Unit tests
run: npm run test
browser-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
with:
persist-credentials: false
- uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0
with:
cache: 'npm'
cache-dependency-path: |
package-lock.json
node-version: ^26.3.0
- name: Bootstrap
run: npm ci --ignore-scripts
- name: Build 🔧
run: npm run compile
- name: Unit tests
run: npm run test:browser
- name: Report Coverage
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v6.0.2
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
verbose: true
webworker-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
with:
persist-credentials: false
- uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0
with:
cache: 'npm'
cache-dependency-path: |
package-lock.json
node-version: ^26.3.0
- name: Bootstrap
run: npm ci --ignore-scripts
- name: Build 🔧
run: npm run compile
- name: Unit tests
run: npm run test:webworker
- name: Report Coverage
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v6.0.2
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
verbose: true