Add GitHub Actions workflow to verify warning-free builds

This commit is contained in:
Christian Semmler 2026-01-11 19:43:20 -07:00
parent bb1deef26a
commit 6a60a829ce
No known key found for this signature in database
GPG Key ID: 086DAA1360BEEE5C
2 changed files with 31 additions and 0 deletions

26
.github/workflows/build.yml vendored Normal file
View File

@ -0,0 +1,26 @@
name: Build
on:
push:
branches: [master]
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build

View File

@ -18,6 +18,11 @@ export default defineConfig({
}
},
rollupOptions: {
onwarn(warning) {
if (process.env.CI) {
throw new Error(warning.message);
}
},
output: {
entryFileNames: 'app.js',
chunkFileNames: '[name].js',