Skip to content

Commit

Permalink
ci: add integration testing via Nix
Browse files Browse the repository at this point in the history
  • Loading branch information
RaitoBezarius committed Aug 28, 2023
1 parent f8b4139 commit 1654113
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: "Run integration tests"
on:
pull_request:
push:
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Enable KVM group perms
run: |
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
sudo udevadm control --reload-rules
sudo udevadm trigger --name-match=kvm
- uses: cachix/install-nix-action@v20
with:
nix_path: nixpkgs=channel:nixos-unstable
extra_nix_config: "system-features = nixos-test benchmark big-parallel kvm"
- uses: DeterminateSystems/magic-nix-cache-action@v2
- run: nix flake check -L

0 comments on commit 1654113

Please sign in to comment.