mirror of
https://github.com/Mic92/sops-nix.git
synced 2025-12-26 22:24:59 +08:00
move ci to garnix
This commit is contained in:
parent
f04ef790f6
commit
3a2686f358
5 changed files with 32 additions and 52 deletions
28
.github/workflows/test.yml
vendored
28
.github/workflows/test.yml
vendored
|
|
@ -5,35 +5,11 @@ on:
|
|||
- cron: '51 2 * * *'
|
||||
jobs:
|
||||
tests:
|
||||
strategy:
|
||||
matrix:
|
||||
nixPath:
|
||||
- nixpkgs=https://github.com/NixOS/nixpkgs/archive/nixos-21.05.tar.gz
|
||||
- nixpkgs=https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz
|
||||
os: [ ubuntu-latest, macos-latest ]
|
||||
runs-on: ${{ matrix.os }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: cachix/install-nix-action@v17
|
||||
with:
|
||||
nix_path: "${{ matrix.nixPath }}"
|
||||
- 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: List flake structure
|
||||
run: nix flake show
|
||||
- name: Run flake check (flake)
|
||||
run: nix flake check -L
|
||||
# this should be the same as `nix flake check`
|
||||
- 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'
|
||||
run: nix develop .#unit-tests --command "true"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue