Skip to content

Commit fca501e

Browse files
Add test build to pull requests (#294)
This checks that the site will actually build, which can help catch some errors.
1 parent 5271a3c commit fca501e

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/test-build.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Test build
2+
3+
on: pull_request
4+
5+
jobs:
6+
test_build:
7+
name: Test build
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v5
12+
- name: Setup Node.js
13+
uses: actions/setup-node@v6
14+
with:
15+
node-version-file: .nvmrc
16+
- name: Install dependencies
17+
run: npm ci
18+
- name: Build with Eleventy
19+
run: npm run-script build

0 commit comments

Comments
 (0)