Skip to content

Commit d18f4e0

Browse files
committed
feat: added a separate github workflow for integration tests
1 parent 875c15e commit d18f4e0

3 files changed

Lines changed: 30 additions & 0 deletions

File tree

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Integration Test
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches: [main]
7+
pull_request:
8+
types: [opened, reopened, synchronize, ready_for_review]
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
integration-test:
16+
name: Integration Tests
17+
runs-on: ubuntu-latest
18+
timeout-minutes: 15
19+
steps:
20+
- uses: actions/checkout@v4
21+
22+
- name: Install dependencies
23+
uses: ./.github/actions/install-dependencies
24+
25+
- name: Integration Test
26+
run: bun run test:integration
27+
env:
28+
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"check": "biome check --write .",
99
"build": "tsc --noEmit",
1010
"test": "vitest run",
11+
"test:integration": "vitest run src/test/integration",
1112
"release": "changeset publish",
1213
"version": "changeset version"
1314
},

vitest.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ export default defineConfig(({ mode }) => ({
55
test: {
66
env: loadEnv(mode, process.cwd(), ''),
77
testTimeout: 500_000,
8+
exclude: ['**/node_modules/**', 'src/test/integration/**'],
89
},
910
}));

0 commit comments

Comments
 (0)