-
Notifications
You must be signed in to change notification settings - Fork 7
36 lines (35 loc) · 923 Bytes
/
test-website.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Test website deployment to GitHub Pages
on:
pull_request:
branches:
- main
paths:
- 'website/**'
jobs:
test-deploy:
if: "! github.event.pull_request.head.repo.fork"
name: Test deployment
runs-on: ubuntu-latest
defaults:
run:
working-directory: website
steps:
- uses: actions/checkout@v4
- uses: extractions/setup-just@v1
with:
just-version: '1.14.0' # just for sanity
- uses: actions/setup-node@v3
with:
node-version: 18
cache: yarn
cache-dependency-path: '**/package-lock.json'
- uses: coursier/cache-action@v6
- uses: coursier/setup-action@v1
with:
apps: mdoc
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Test build website
run: yarn build
- name: Run mdoc
run: just test-markdown