diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index 993722c91..f17b524c8 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -30,6 +30,9 @@ steps: - label: '[Browser] Lint + Test' key: browser-lint-test + env: + SEGMENT_CODECOV_FLAGS: 'browser' + SEGMENT_CODECOV_ARGS: '--dir=./packages/browser/coverage' agents: queue: v1 commands: @@ -82,6 +85,9 @@ steps: paths: ['.yarn/cache/'] - label: '[Core] Lint + Test' + env: + SEGMENT_CODECOV_FLAGS: 'core' + SEGMENT_CODECOV_ARGS: '--dir=./packages/core/coverage' 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