Skip to content

Commit

Permalink
ci: Opening PR to test codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
bizob2828 committed Aug 19, 2024
1 parent c0a5e64 commit a60b286
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
24 changes: 13 additions & 11 deletions .github/workflows/ci-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ jobs:
JOBS: ${{ github.ref == 'refs/heads/main' && vars.NR_RUNNER && 16 || 4 }}

codecov:
needs: [unit, integration, versioned-internal]
needs: [unit, integration]
runs-on: ubuntu-latest

strategy:
Expand All @@ -247,24 +247,26 @@ jobs:
- name: Download artifacts
uses: actions/download-artifact@v4
- name: Post Unit Test Coverage
uses: codecov/codecov-action@125fc84a9a348dbcf27191600683ec096ec9021c
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673
with:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
directory: unit-tests-${{ matrix.node-version }}
flags: unit-tests-${{ matrix.node-version }}
- name: Post Integration Test Coverage
uses: codecov/codecov-action@125fc84a9a348dbcf27191600683ec096ec9021c
- name: Post Integration CJS Test Coverage
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673
with:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
directory: integration-tests-${{ matrix.node-version }}
flags: integration-tests-${{ matrix.node-version }}
- name: Post Versioned Test Coverage
uses: codecov/codecov-action@125fc84a9a348dbcf27191600683ec096ec9021c
directory: integration-tests-cjs-${{ matrix.node-version }}
flags: integration-tests-cjs-${{ matrix.node-version }}
- name: Post Integration ESM Test Coverage
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673
with:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
directory: versioned-tests-${{ matrix.node-version }}
flags: versioned-tests-${{ matrix.node-version }}

directory: integration-tests-esm-${{ matrix.node-version }}
flags: integration-tests-esm-${{ matrix.node-version }}
all-clear:
if: always()
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions test/unit/adaptive-sampler.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ tap.test('AdaptiveSampler', (t) => {
t.equal(sampler.sampled, 0)
t.ok(sampler.shouldSample(0.1234))
t.equal(sampler.sampled, 1)
t.ok(1)
t.end()
},

Expand Down

0 comments on commit a60b286

Please sign in to comment.