1
0
Fork 0
mirror of https://github.com/Mic92/sops-nix.git synced 2024-12-14 11:57:52 +00:00

github ci: run nixos tests

This commit is contained in:
Jörg Thalheim 2020-11-13 09:33:09 +01:00
parent b67ae45dc7
commit 71b96f7bd3
No known key found for this signature in database
GPG key ID: 003F2096411B5F92

View file

@ -1,7 +1,6 @@
name: "Test"
on:
pull_request:
push:
schedule:
- cron: '51 2 * * *'
jobs:
@ -15,9 +14,10 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: cachix/install-nix-action@v10
- uses: cachix/install-nix-action@v12
with:
nix_path: "${{ matrix.nixPath }}"
extra_nix_config: "system-features = nixos-test benchmark big-parallel kvm"
- name: Setup cachix
uses: cachix/cachix-action@v6
with:
@ -38,3 +38,6 @@ jobs:
- name: Run sops-install-secrets tests
run: nix-shell --pure --run "$(command -v sudo) unshare --mount --fork go test ./pkgs/sops-install-secrets"
if: matrix.os == 'ubuntu-latest'
- name: Run NixOS test
run: nix-build -A sops-install-secrets.tests
if: matrix.os == 'ubuntu-latest'