Skip to content

Commit 6cb45f4

Browse files
committed
ci: consolidate integration tests into build job
1 parent 8801b41 commit 6cb45f4

1 file changed

Lines changed: 6 additions & 32 deletions

File tree

.github/workflows/build-and-test.yml

Lines changed: 6 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -46,47 +46,21 @@ jobs:
4646
- name: Run unit tests
4747
run: pnpm vitest run --coverage --exclude tests/integration/**
4848

49-
- name: Upload results to Codecov
50-
uses: codecov/codecov-action@v5
51-
with:
52-
token: ${{ secrets.CODECOV_TOKEN }}
53-
54-
integration-tests:
55-
runs-on: ubuntu-latest
56-
needs: build
57-
58-
steps:
59-
- name: Checkout repository
60-
uses: actions/checkout@v6
61-
62-
- name: Set up pnpm
63-
uses: pnpm/action-setup@v4
64-
with:
65-
run_install: false
66-
67-
- name: Set up Node.js
68-
uses: actions/setup-node@v6
69-
with:
70-
node-version-file: '.nvmrc'
71-
cache: 'pnpm'
72-
cache-dependency-path: pnpm-lock.yaml
73-
74-
- name: Install dependencies
75-
run: pnpm install --frozen-lockfile
76-
77-
- name: Run build
78-
run: pnpm run build
79-
8049
- name: Run integration tests
8150
run: pnpm vitest run tests/integration
8251
env:
8352
HEVY_API_KEY: ${{ secrets.HEVY_API_KEY }}
8453

54+
- name: Upload results to Codecov
55+
uses: codecov/codecov-action@v5
56+
with:
57+
token: ${{ secrets.CODECOV_TOKEN }}
58+
8559
otel-cicd-action:
8660
if: always()
8761
name: OpenTelemetry Export Trace
8862
runs-on: ubuntu-latest
89-
needs: [build, integration-tests]
63+
needs: [build]
9064
steps:
9165
- name: Export workflow
9266
uses: corentinmusard/otel-cicd-action@v2

0 commit comments

Comments
 (0)