-
Notifications
You must be signed in to change notification settings - Fork 70
41 lines (39 loc) · 1.08 KB
/
test.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
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