Merge pull request #44 from Mic92/parallel-tests

This commit is contained in:
Jörg Thalheim 2020-11-13 10:07:52 +01:00 committed by GitHub
commit e595eccd7c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 39 deletions

View file

@ -1,37 +0,0 @@
---
kind: pipeline
name: nixos-tests
steps:
- name: test
image: busybox
environment:
NIX_REMOTE: daemon
PATH: /nix/var/nix/profiles/system/sw/bin/
PAGER: cat
USER: root
volumes:
- name: nixstore
path: /nix
- name: nixconf
path: /etc/nix
- name: sslcerts
path: /etc/ssl
commands:
- nix-build -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/nixpkgs-unstable.tar.gz -A sops-install-secrets.tests
- nix-build -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/nixos-20.09.tar.gz -A sops-install-secrets.tests
volumes:
- name: nixstore
host:
path: /nix
- name: nixconf
host:
path: /nix/var/nix/profiles/system/etc/nix
- name: sslcerts
host:
path: /nix/var/nix/profiles/system/etc/ssl
---
kind: signature
hmac: 5bb657faca0ecd18576534f7e486511d6f698595cc244d9617e660ef2ddb678d
...

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'