mirror of
https://github.com/Mic92/sops-nix.git
synced 2025-03-16 21:48:15 +00:00
Bumps [cachix/cachix-action](https://github.com/cachix/cachix-action) from v8 to v9. - [Release notes](https://github.com/cachix/cachix-action/releases) - [Commits](https://github.com/cachix/cachix-action/compare/v8...2689c27f57daedc905895d92ad18fe5ce470df9e) Signed-off-by: dependabot[bot] <support@github.com>
31 lines
941 B
YAML
31 lines
941 B
YAML
name: "Flake test"
|
|
on:
|
|
pull_request:
|
|
schedule:
|
|
- cron: '51 2 * * *'
|
|
jobs:
|
|
tests:
|
|
strategy:
|
|
matrix:
|
|
os: [ ubuntu-latest, macos-latest ]
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
# Nix Flakes doesn't work on shallow clones
|
|
fetch-depth: 0
|
|
- uses: cachix/install-nix-action@v12
|
|
with:
|
|
install_url: https://github.com/numtide/nix-flakes-installer/releases/download/nix-2.4pre20201221_9fab14a/install
|
|
extra_nix_config: |
|
|
experimental-features = nix-command flakes
|
|
system-features = nixos-test benchmark big-parallel kvm
|
|
- name: Setup cachix
|
|
uses: cachix/cachix-action@v9
|
|
with:
|
|
name: mic92
|
|
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
|
|
- name: List flake structure
|
|
run: nix flake show
|
|
- name: Run unit tests (flake)
|
|
run: nix build --no-link .#unit-tests -L
|