Skip to content

Commit aa58b41

Browse files
committed
GitHub Actions: use fixed Ubuntu version, fail on build warnings
1 parent 97f1b5c commit aa58b41

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66

77
jobs:
88
build:
9-
runs-on: ubuntu-latest
9+
runs-on: ubuntu-24.04
1010

1111
steps:
1212
- name: Checkout repository
@@ -24,5 +24,12 @@ jobs:
2424
- name: Run type check
2525
run: npm run typecheck
2626

27-
- name: Build documentation
28-
run: npm run build
27+
- name: Build documentation and check for warnings
28+
run: |
29+
npm run build 2>&1 | tee build.log
30+
if grep -i "warning" build.log; then
31+
echo " Build completed with warnings. Failing the build."
32+
exit 1
33+
else
34+
echo " Build completed without warnings."
35+
fi

0 commit comments

Comments
 (0)