enhance nix-shell and add CI

This commit is contained in:
GTrunSec 2021-05-13 01:18:12 -07:00 committed by David Arnold
parent ffaa63af55
commit c3fa598922
7 changed files with 99 additions and 41 deletions

19
.github/workflows/nix-flake.yml vendored Normal file
View file

@ -0,0 +1,19 @@
name: CI
on:
pull_request:
push:
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.4
- uses: cachix/install-nix-action@v13
with:
install_url: https://github.com/numtide/nix-flakes-installer/releases/download/nix-2.4pre20210429_d15a196/install
- run: echo "experimental-features = nix-command flakes" | sudo tee -a /etc/nix/nix.conf
- name: Run Nix Flake Check
run: nix flake check
- name: Check Nix parsing
run: nix-shell --command "evalnix"