Skip to content

Commit 538c9f8

Browse files
committed
[CI] Add github actions job to quickly find site build errors without relying on netlify
1 parent f9274c8 commit 538c9f8

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/ci.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
types: [opened, reopened, synchronize]
6+
7+
permissions:
8+
contents: read
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
build:
16+
name: Build
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Install pagefind
20+
uses: jaxxstorm/action-install-gh-release@6096f2a2bbfee498ced520b6922ac2c06e990ed2 # v2.1.0
21+
with:
22+
repo: cloudcannon/pagefind
23+
24+
- name: Checkout
25+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
26+
27+
- name: Set up Hugo
28+
uses: peaceiris/actions-hugo@75d2e84710de30f6ff7268e08f310b60ef14033f # v3.0.0
29+
with:
30+
hugo-version: 'latest'
31+
extended: true
32+
33+
- name: Set up Python 3.12
34+
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
35+
with:
36+
python-version: 3.12
37+
38+
- name: Install Python dependencies
39+
run: pip install -r requirements_test.txt
40+
41+
- name: Run production build
42+
run: make production

0 commit comments

Comments
 (0)