mirror of
https://github.com/Mic92/sops-nix.git
synced 2025-12-26 22:24:59 +08:00
Merge pull request #44 from Mic92/parallel-tests
This commit is contained in:
commit
e595eccd7c
2 changed files with 5 additions and 39 deletions
37
.drone.yml
37
.drone.yml
|
|
@ -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
|
||||
|
||||
...
|
||||
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…
Add table
Add a link
Reference in a new issue