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:
|
2023-12-26 04:45:21 +01:00
|
|
|
- name: Checkout repository
|
2024-01-27 07:35:52 +01:00
|
|
|
uses: actions/checkout@v4
|
2023-12-26 04:45:21 +01:00
|
|
|
- name: Install Nix
|
|
|
|
uses: DeterminateSystems/nix-installer-action@main
|
|
|
|
with:
|
|
|
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
extra-conf: "system-features = nixos-test benchmark big-parallel kvm"
|
|
|
|
- name: Setup Caching
|
2024-01-27 07:35:52 +01:00
|
|
|
uses: cachix/cachix-action@v14
|
2023-12-26 04:45:21 +01:00
|
|
|
with:
|
|
|
|
name: selfhostblocks
|
|
|
|
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
|
|
|
- name: Run tests
|
|
|
|
run: |
|
|
|
|
nix run github:Mic92/nix-fast-build -- \
|
|
|
|
--skip-cached --no-nom \
|
|
|
|
--flake ".#checks.$(nix eval --raw --impure --expr builtins.currentSystem)"
|