diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index 993722c91..60cd2316b 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -47,6 +47,10 @@ steps: key: qa agents: queue: v1 + env: + SEGMENT_CODECOV_FLAGS: 'browser' + SEGMENT_CODECOV_ARGS: '--dir=./packages/browser/coverage' + COVERAGE: true commands: - npm config set "//registry.npmjs.org/:_authToken" $${NPM_TOKEN} - echo "--- Install dependencies" @@ -82,6 +86,10 @@ steps: paths: ['.yarn/cache/'] - label: '[Core] Lint + Test' + env: + SEGMENT_CODECOV_FLAGS: 'core' + SEGMENT_CODECOV_ARGS: '--dir=./packages/core/coverage' + COVERAGE: true agents: queue: v1 commands: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a7db4a5a2..2f6617cdb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,8 +26,14 @@ jobs: restore-keys: | ${{ runner.os }}-turbo- - run: yarn turbo run --filter='./packages/node*' lint - - run: yarn turbo run --filter='./packages/node*' test + - run: COVERAGE=true yarn turbo run --filter='./packages/node*' test - run: yarn turbo run --filter='./packages/node-integration-tests' test:perf-and-durability + - uses: codecov/codecov-action@v5 + with: + fail_ci_if_error: true + flags: node + directory: ./packages/node/coverage + token: ${{ secrets.CODECOV_TOKEN }} analytics-node-cf-workers: name: 'analytics-node QA (Cloudflare Workers)' runs-on: ubuntu-latest diff --git a/codecov.yml b/codecov.yml index f5be7fd90..f494c1163 100644 --- a/codecov.yml +++ b/codecov.yml @@ -5,3 +5,5 @@ coverage: target: auto threshold: 0% base: auto +comment: + show_carryforward_flags: true diff --git a/packages/browser/jest.config.js b/packages/browser/jest.config.js index 2e212a7fb..7dfb96f4d 100644 --- a/packages/browser/jest.config.js +++ b/packages/browser/jest.config.js @@ -6,10 +6,10 @@ module.exports = createJestTSConfig(__dirname, { testEnvironment: 'jsdom', coverageThreshold: { global: { - branches: 74, - functions: 80, - lines: 87, - statements: 82, + branches: 0, + functions: 0, + lines: 0, + statements: 0, }, }, })