Skip to content

Commit 01d7eef

Browse files
committed
ci: add turbo test task and run affected tests in PR CI
1 parent 7df6396 commit 01d7eef

3 files changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ jobs:
125125
run: exit 1
126126

127127
- name: Create Test Report
128-
run: pnpm test run
128+
run: pnpm test:affected
129129

130130
- name: Create Test Coverage
131131
id: test-coverage

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
"format": "biome format",
5151
"format:staged": "biome format --staged",
5252
"test": "vitest --run",
53+
"test:affected": "turbo run test --affected",
5354
"test:watch": "vitest --watch",
5455
"test:coverage": "vitest run --coverage",
5556
"test:build": "docker build -f alpine.Dockerfile -t fusion_framework:test .",

turbo.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
"outputs": ["dist/**"],
88
"cache": true
99
},
10+
"test": {
11+
"dependsOn": ["^test"]
12+
},
1013
"//#preindex:eds": {
1114
"inputs": ["eds/Dockerfile", "eds/*.ts"],
1215
"outputs": ["eds/out/**"],

0 commit comments

Comments
 (0)