mirror of
https://github.com/Mic92/sops-nix.git
synced 2026-05-14 17:31:19 +08:00
add ci
This commit is contained in:
parent
81f9f69b84
commit
2cba1556fd
1 changed files with 28 additions and 0 deletions
28
.github/workflows/test.yml
vendored
Normal file
28
.github/workflows/test.yml
vendored
Normal file
|
|
@ -0,0 +1,28 @@
|
||||||
|
name: "Test"
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
push:
|
||||||
|
schedule:
|
||||||
|
- cron: '51 2 * * *'
|
||||||
|
jobs:
|
||||||
|
tests:
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
nixPath:
|
||||||
|
- nixpkgs=channel:nixos-20.03
|
||||||
|
- nixpkgs=channel:nixpkgs-unstable
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: cachix/install-nix-action@v10
|
||||||
|
with:
|
||||||
|
nix_path: "${{ matrix.nixPath }}"
|
||||||
|
- name: Setup cachix
|
||||||
|
uses: cachix/cachix-action@v6
|
||||||
|
with:
|
||||||
|
name: ${{ matrix.cachixName }}
|
||||||
|
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
|
||||||
|
- name: Show nixpkgs version
|
||||||
|
run: nix-instantiate --eval -E '(import <nixpkgs> {}).lib.version'
|
||||||
|
- name: Build nix packages
|
||||||
|
run: nix run nixpkgs.nix-build-uncached -c nix-build-uncached default.nix
|
||||||
Loading…
Add table
Add a link
Reference in a new issue