2023-11-02 10:55:47 -07:00
|
|
|
name: Test modules
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths:
|
2024-01-11 13:23:27 -08:00
|
|
|
- '_sources/**'
|
2023-11-02 10:55:47 -07:00
|
|
|
- 'modules/**'
|
|
|
|
- 'test.nix'
|
|
|
|
- 'flake.*'
|
2024-01-11 13:23:27 -08:00
|
|
|
- 'dev/flake.*'
|
2023-11-02 10:55:47 -07:00
|
|
|
pull_request:
|
|
|
|
paths:
|
2024-01-11 13:23:27 -08:00
|
|
|
- '_sources/**'
|
2023-11-02 10:55:47 -07:00
|
|
|
- 'modules/**'
|
|
|
|
- 'test.nix'
|
|
|
|
- 'flake.*'
|
2024-01-11 13:23:27 -08:00
|
|
|
- 'dev/flake.*'
|
2023-11-02 10:55:47 -07:00
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
run-vm:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2023-11-03 09:13:04 -07:00
|
|
|
- uses: actions/checkout@v4
|
2023-12-16 15:38:36 -08:00
|
|
|
|
2023-12-16 15:53:08 -08:00
|
|
|
- uses: cachix/install-nix-action@v24
|
2023-11-02 10:55:47 -07:00
|
|
|
with:
|
|
|
|
extra_nix_config: "system-features = benchmark big-parallel kvm nixos-test uid-range"
|
2023-12-16 15:38:36 -08:00
|
|
|
|
2023-11-02 10:55:47 -07:00
|
|
|
- uses: DeterminateSystems/magic-nix-cache-action@main
|
|
|
|
|
|
|
|
- name: Run VM
|
2023-12-16 15:38:36 -08:00
|
|
|
run: |
|
|
|
|
nix build -Lv ./dev#checks.x86_64-linux.module-vm-test
|