File tree Expand file tree Collapse file tree 1 file changed +28
-1
lines changed
Expand file tree Collapse file tree 1 file changed +28
-1
lines changed Original file line number Diff line number Diff line change 44 push :
55 branches : [main, staging]
66 pull_request :
7+ branches : [main, staging]
78
89jobs :
10+ changes :
11+ name : Detect Changes
12+ runs-on : ubuntu-latest
13+ outputs :
14+ api : ${{ steps.filter.outputs.api }}
15+ basket : ${{ steps.filter.outputs.basket }}
16+ dashboard : ${{ steps.filter.outputs.dashboard }}
17+ steps :
18+ - uses : actions/checkout@v4
19+ - uses : dorny/paths-filter@v3
20+ id : filter
21+ with :
22+ filters : |
23+ api:
24+ - 'apps/api/**'
25+ basket:
26+ - 'apps/basket/**'
27+ dashboard:
28+ - 'apps/dashboard/**'
29+
930 check-api :
1031 name : API - Type Check & Lint
32+ needs : changes
33+ if : ${{ needs.changes.outputs.api == 'true' }}
1134 runs-on : ubuntu-latest
1235 defaults :
1336 run :
@@ -21,19 +44,23 @@ jobs:
2144
2245 check-basket :
2346 name : Basket - Type Check & Lint
47+ needs : changes
48+ if : ${{ needs.changes.outputs.basket == 'true' }}
2449 runs-on : ubuntu-latest
2550 defaults :
2651 run :
2752 working-directory : apps/basket
2853 steps :
2954 - uses : actions/checkout@v4
3055 - uses : oven-sh/setup-bun@v1
31- - run : bun install
56+ - run : bun install
3257 - run : bun run tsc --noEmit
3358 - run : bun run biome check .
3459
3560 check-dashboard :
3661 name : Dashboard - Type Check & Lint
62+ needs : changes
63+ if : ${{ needs.changes.outputs.dashboard == 'true' }}
3764 runs-on : ubuntu-latest
3865 defaults :
3966 run :
You can’t perform that action at this time.
0 commit comments