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:
parent
b67ae45dc7
commit
71b96f7bd3
1 changed files with 5 additions and 2 deletions
7
.github/workflows/test.yml
vendored
7
.github/workflows/test.yml
vendored
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue