Skip to content

Commit 1654113

Browse files
committed
ci: add integration testing via Nix
1 parent f8b4139 commit 1654113

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/integration.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: "Run integration tests"
2+
on:
3+
pull_request:
4+
push:
5+
jobs:
6+
tests:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v3
10+
- name: Enable KVM group perms
11+
run: |
12+
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
13+
sudo udevadm control --reload-rules
14+
sudo udevadm trigger --name-match=kvm
15+
- uses: cachix/install-nix-action@v20
16+
with:
17+
nix_path: nixpkgs=channel:nixos-unstable
18+
extra_nix_config: "system-features = nixos-test benchmark big-parallel kvm"
19+
- uses: DeterminateSystems/magic-nix-cache-action@v2
20+
- run: nix flake check -L

0 commit comments

Comments
 (0)