fix(sdk-metrics) Don't Export from PeriodicExportingMetricReader with No Metrics #12891
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Unit Tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
merge_group: | |
jobs: | |
node-tests: | |
strategy: | |
fail-fast: false | |
matrix: | |
node_version: | |
- "18" | |
- "20" | |
- "22" | |
runs-on: ubuntu-latest | |
env: | |
NPM_CONFIG_UNSAFE_PERM: true | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
cache: 'npm' | |
cache-dependency-path: | | |
package-lock.json | |
node-version: ${{ matrix.node_version }} | |
- run: npm install -g npm@latest | |
if: ${{ matrix.node_version == '20' || matrix.node_version == '22' }} | |
# [email protected] drops support for Node.js v18 | |
- run: npm install -g npm@"<11.0.0" | |
if: ${{ matrix.node_version == '18'}} | |
- name: Bootstrap | |
run: npm ci | |
- name: Build 🔧 | |
run: npm run compile | |
- name: Unit tests | |
run: npm run test | |
- name: Report Coverage | |
uses: codecov/codecov-action@v5 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
with: | |
verbose: true | |
node-windows-tests: | |
runs-on: windows-latest | |
env: | |
NPM_CONFIG_UNSAFE_PERM: true | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
cache: 'npm' | |
cache-dependency-path: | | |
package-lock.json | |
node-version: '20' | |
- run: npm install -g npm@latest | |
- name: Bootstrap | |
run: npm ci | |
- 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 | |
env: | |
NPM_CONFIG_UNSAFE_PERM: true | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
cache: 'npm' | |
cache-dependency-path: | | |
package-lock.json | |
node-version: 22 | |
- name: Bootstrap | |
run: npm ci | |
- name: Build 🔧 | |
run: npm run compile | |
- name: Unit tests | |
run: npm run test:browser | |
- name: Report Coverage | |
uses: codecov/codecov-action@v5 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
with: | |
verbose: true | |
webworker-tests: | |
runs-on: ubuntu-latest | |
env: | |
NPM_CONFIG_UNSAFE_PERM: true | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
cache: 'npm' | |
cache-dependency-path: | | |
package-lock.json | |
node-version: 22 | |
- name: Bootstrap | |
run: npm ci | |
- name: Build 🔧 | |
run: npm run compile | |
- name: Unit tests | |
run: npm run test:webworker | |
- name: Report Coverage | |
uses: codecov/codecov-action@v5 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
with: | |
verbose: true |