Skip to content

Commit 3c0aefa

Browse files
committed
ci: migrate reusable check.yaml to Bun; remove duplicate check.yml & ci.yml
1 parent 1e6e8b5 commit 3c0aefa

1 file changed

Lines changed: 24 additions & 11 deletions

File tree

.github/workflows/check.yaml

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,26 +15,39 @@ jobs:
1515
actions: read
1616
steps:
1717
- uses: actions/checkout@v4
18-
- uses: pnpm/action-setup@v4
18+
- uses: oven-sh/setup-bun@v2
19+
with:
20+
bun-version: 1.2.21
1921
- name: Set up Node
2022
uses: actions/setup-node@v4
2123
with:
2224
node-version-file: '.tool-versions'
23-
cache: 'pnpm'
2425
- name: Setup Biome
2526
uses: biomejs/setup-biome@v2
2627
- name: Run Biome
2728
run: biome ci .
2829

29-
- run: pnpm install --frozen-lockfile
30+
- name: Install dependencies
31+
run: bun install --frozen-lockfile
32+
33+
- name: Validate OpenAPI specs
34+
run: |
35+
bun x swagger-cli validate openapis/marblecore-api.yaml
36+
bun x swagger-cli validate openapis/feature-access-api.yaml
37+
bun x swagger-cli validate openapis/transfercheck-api.yaml
38+
working-directory: packages/marble-api
3039

31-
- run: |
32-
pnpm --filter marble-api exec swagger-cli validate openapis/marblecore-api.yaml
33-
pnpm --filter marble-api exec swagger-cli validate openapis/feature-access-api.yaml
34-
pnpm --filter marble-api exec swagger-cli validate openapis/transfercheck-api.yaml
35-
pnpm --filter marble-api run generate-api
40+
- name: Generate API client and verify diff
41+
run: |
42+
bun run generate-api
3643
git diff --exit-code || (echo 'Generated API stubs not up to date with OpenAPI specification.' && exit 1)
44+
working-directory: packages/marble-api
45+
46+
- name: Type check (all workspaces)
47+
run: bun run -F "*" type-check
48+
49+
- name: Tests
50+
run: bun run test:all
3751

38-
- run: pnpm run -r type-check
39-
- run: pnpm run test:all
40-
- run: pnpm run -r build
52+
- name: Build app-builder
53+
run: bun run -F app-builder build

0 commit comments

Comments
 (0)