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
|
|
|
|
- uses: cachix/install-nix-action@v22
|
|
|
|
with:
|
|
|
|
github_access_token: ${{ secrets.GITHUB_TOKEN }}
|
2023-11-23 10:03:33 +01:00
|
|
|
extra_nix_config: "system-features = nixos-test benchmark big-parallel kvm"
|
|
|
|
- uses: cachix/cachix-action@v12
|
|
|
|
with:
|
|
|
|
name: selfhostblocks
|
|
|
|
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
2023-11-30 19:38:35 +01:00
|
|
|
- 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)"
|