2023-11-17 07:56:44 +01:00
|
|
|
name: "Test"
|
|
|
|
on:
|
|
|
|
pull_request:
|
2023-11-30 22:15:00 +01:00
|
|
|
push:
|
|
|
|
branches: [ "main" ]
|
2023-11-17 07:56:44 +01:00
|
|
|
jobs:
|
|
|
|
tests:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
2023-12-11 06:57:04 +01:00
|
|
|
- uses: DeterminateSystems/nix-installer-action@main
|
2023-11-17 07:56:44 +01:00
|
|
|
with:
|
2023-12-11 06:57:04 +01:00
|
|
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
extra-conf: "system-features = nixos-test benchmark big-parallel kvm"
|
2023-11-23 10:03:33 +01:00
|
|
|
- uses: cachix/cachix-action@v12
|
|
|
|
with:
|
|
|
|
name: selfhostblocks
|
|
|
|
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
2023-12-08 20:46:45 +01:00
|
|
|
- name: Run tests
|
|
|
|
run: |
|
2023-12-04 08:56:25 +01:00
|
|
|
nix run github:Mic92/nix-fast-build -- \
|
|
|
|
--skip-cached --no-nom \
|
|
|
|
--flake ".#checks.$(nix eval --raw --impure --expr builtins.currentSystem)"
|
2023-12-08 20:46:45 +01:00
|
|
|
|
|
|
|
- name: Test building docs
|
|
|
|
run: |
|
|
|
|
nix \
|
|
|
|
--print-build-logs \
|
|
|
|
--option keep-going true \
|
|
|
|
--show-trace \
|
|
|
|
build .#manualHtml
|