[Issues #8 and #9] ADRs for website framework and hosting #8
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |