-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (38 loc) · 1.03 KB
/
ci-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
37
38
39
40
41
42
43
44
45
46
47
48
49
name: CI - Website
on:
workflow_call:
pull_request:
paths:
- website/**
- .github/workflows/ci-website.yml
defaults:
run:
working-directory: ./website
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Install Dependencies
# Installs dependencies directly from package.lock
# and skips dependency resolution etc.
run: npm ci
- name: Lint and Format
run: |
npm run check:lint
npm run check:format
- name: Check spelling
run: npm run check:spelling
- name: Check astro files
run: npm run check:astro
- name: Build Site
run: npm run build
- name: Check Links
uses: lycheeverse/[email protected]
with:
# Check the links in the html files in the output directory
# that were generated by `npm run build`
args: ./dist/
- name: Audit Dependencies
run: npm audit --production