Skip to content

Add external link checking #1036

Add external link checking

Add external link checking #1036

Workflow file for this run

name: Run Zero to Nix site tests
on:
pull_request:
push:
branches:
- main
jobs:
test:
environment: test
runs-on: ubuntu-22.04
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: git checkout
uses: actions/checkout@v3
- name: Check Nixpkgs input
uses: DeterminateSystems/flake-checker-action@main
with:
fail-mode: true
- name: Restore Lychee cache
uses: actions/cache@v3
with:
path: .lycheecache
key: cache-lychee-${{ github.sha }}
restore-keys: cache-lychee-
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Run Nix CI suite
run: nix develop --command ci
- name: Check external links
run: |
nix develop --command \
lychee \
--cache \
--verbose \
--github-token ${{ env.GITHUB_TOKEN }} \
./dist
- name: Check flake templates
run: ./scripts/check-flake-templates.sh