mirror of
https://github.com/Mic92/sops-nix.git
synced 2024-12-14 11:57:52 +00:00
f82b674ca0
Bumps [cachix/cachix-action](https://github.com/cachix/cachix-action) from v9 to v10. - [Release notes](https://github.com/cachix/cachix-action/releases) - [Commits](https://github.com/cachix/cachix-action/compare/v9...73e75d1a0cd4330597a571e8f9dedb41faa2fc4e) Signed-off-by: dependabot[bot] <support@github.com>
35 lines
1.2 KiB
YAML
35 lines
1.2 KiB
YAML
name: "Test"
|
|
on:
|
|
pull_request:
|
|
schedule:
|
|
- cron: '51 2 * * *'
|
|
jobs:
|
|
tests:
|
|
strategy:
|
|
matrix:
|
|
nixPath:
|
|
- nixpkgs=https://github.com/NixOS/nixpkgs/archive/nixos-20.09.tar.gz
|
|
- nixpkgs=https://github.com/NixOS/nixpkgs/archive/nixpkgs-unstable.tar.gz
|
|
os: [ ubuntu-latest, macos-latest ]
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: cachix/install-nix-action@v13
|
|
with:
|
|
nix_path: "${{ matrix.nixPath }}"
|
|
extra_nix_config: "system-features = nixos-test benchmark big-parallel kvm"
|
|
- name: Setup cachix
|
|
uses: cachix/cachix-action@v10
|
|
with:
|
|
name: mic92
|
|
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
|
|
- name: Add keys group (needed for go tests)
|
|
run: sudo groupadd keys
|
|
if: matrix.os == 'ubuntu-latest'
|
|
- name: Run lint
|
|
run: nix-build --no-out-link default.nix -A lint
|
|
if: matrix.os == 'ubuntu-latest'
|
|
- name: Build nix packages
|
|
run: nix-build --no-out-link release.nix
|
|
- name: Run unit tests
|
|
run: nix-shell --no-out-link ./unit-tests.nix --argstr sudo "$(command -v sudo)" --pure --run 'true'
|