Skip to content

Commit

Permalink
Merge branch 'add_nix_test'
Browse files Browse the repository at this point in the history
  • Loading branch information
mguentner committed Apr 2, 2023
2 parents 3ba6625 + 1913184 commit 87f9dfa
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/nix-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: "NixOS derivation tests"
on:
pull_request:
push:
jobs:
nix-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v20
with:
nix_path: nixpkgs=channel:nixos-unstable
- run: nix-build -E 'with import <nixpkgs> {}; pkgs.callPackage ./default.nix {}'
flake-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v20
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- run: nix build
- run: nix flake check

0 comments on commit 87f9dfa

Please sign in to comment.