Skip to content

Commit 9bc723d

Browse files
authored
Merge pull request #125 from bighadj22/ci/add-build-steps
ci: add production build steps to all CI jobs
2 parents 26c88ab + 9113994 commit 9bc723d

1 file changed

Lines changed: 13 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ concurrency:
1414

1515
jobs:
1616
server:
17-
name: cod-server (typecheck + test)
17+
name: cod-server (typecheck + test + build)
1818
runs-on: ubuntu-latest
1919
steps:
2020
- uses: actions/checkout@v7
@@ -26,9 +26,12 @@ jobs:
2626
- run: npm ci
2727
- run: npm run typecheck --workspace codflow-server
2828
- run: npm test --workspace codflow-server
29+
- run: cp wrangler.toml.example wrangler.toml
30+
working-directory: cod-server
31+
- run: npm run build:ci --workspace codflow-server
2932

3033
dashboard:
31-
name: cod-client-astro (typecheck + test)
34+
name: cod-client-astro (typecheck + test + build)
3235
runs-on: ubuntu-latest
3336
steps:
3437
- uses: actions/checkout@v7
@@ -40,9 +43,12 @@ jobs:
4043
- run: npm ci
4144
- run: npm run typecheck --workspace codflow-client-astro
4245
- run: npm test --workspace codflow-client-astro
46+
- run: npm run build --workspace codflow-client-astro
47+
env:
48+
PUBLIC_API_URL: http://localhost:8787
4349

4450
theme01:
45-
name: theme01 (astro check + test)
51+
name: theme01 (astro check + test + validate + build)
4652
runs-on: ubuntu-latest
4753
steps:
4854
- uses: actions/checkout@v7
@@ -56,3 +62,7 @@ jobs:
5662
working-directory: cod-astro/theme01
5763
- run: npm test
5864
working-directory: cod-astro/theme01
65+
- run: npm run validate:all
66+
working-directory: cod-astro/theme01
67+
- run: npm run build
68+
working-directory: cod-astro/theme01

0 commit comments

Comments
 (0)