fix(sdk-node)!: fixes for and fail-fast on Resource creation from config file #4687
Workflow file for this run
This file contains hidden or 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: E2E Tests | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| e2e-tests: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| node_version: | |
| - 18.19.0 | |
| - 18 | |
| - 20.6.0 | |
| - 20 | |
| - 22 | |
| - 24 | |
| - 26 | |
| runs-on: ubuntu-latest | |
| steps: | |
| - 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 }} | |
| - name: Install collector | |
| run: | | |
| curl -sSL -o otelcol-contrib.tar.gz https://github.com/open-telemetry/opentelemetry-collector-releases/releases/download/v0.126.0/otelcol-contrib_0.126.0_linux_amd64.tar.gz | |
| tar -xzf otelcol-contrib.tar.gz | |
| working-directory: e2e-tests | |
| - name: run collector in background | |
| run: | | |
| ./otelcol-contrib --config collector-config.yaml & | |
| working-directory: e2e-tests | |
| - name: Export telemetry to collector | |
| run: npm run export-telemetry | |
| working-directory: e2e-tests | |
| - name: stop collector | |
| run: pkill -f otelcol-contrib | |
| working-directory: e2e-tests | |
| - name: Print output | |
| run: cat collector-output.json | |
| working-directory: e2e-tests | |
| - name: verify exported telemetry | |
| run: npm run verify | |
| working-directory: e2e-tests |