Skip to content

Commit b42f9bc

Browse files
committed
Add GHA workflow to check for basic errors
Run "nuxt generate" to catch 404 errors and similar things which are not caught by Netlify building the site.
1 parent 230eaef commit b42f9bc

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/ci.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: CI
2+
3+
on:
4+
# Run this workflow on every push to the main branch.
5+
push:
6+
branches:
7+
- main
8+
pull_request:
9+
branches:
10+
- main
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
- uses: actions/setup-node@v3
20+
with:
21+
node-version: '20.x'
22+
- name: Install dependencies
23+
run: yarn --frozen-lockfile
24+
- name: Generate static site (tests for broken links and build errors)
25+
run: yarn nuxi generate

0 commit comments

Comments
 (0)