sass-site/.github/workflows/check-links.yml

27 lines
661 B
YAML
Raw Normal View History

2023-06-16 02:00:55 +02:00
name: Check Links
on:
workflow_dispatch: # Allow running on-demand
schedule:
# 1st of every month at 8:00 UTC (4:00 Eastern)
- cron: '0 8 1 * *'
jobs:
check:
name: Check Links
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
2023-06-20 00:12:39 +02:00
cache: npm
2023-06-16 02:00:55 +02:00
- name: Install dependencies
2023-06-20 00:12:39 +02:00
run: npm ci
2023-06-16 02:00:55 +02:00
- name: Build site
2023-06-20 00:12:39 +02:00
run: npm run build-prod
2023-06-16 02:00:55 +02:00
- name: Check for broken internal links
2023-06-20 00:12:39 +02:00
run: npm run checklinks:internal
2023-06-16 02:00:55 +02:00
- name: Check for broken external links
2023-06-20 00:12:39 +02:00
run: npm run checklinks:external