Add initial set of tests

This commit is contained in:
Zhaofeng Li 2021-02-11 11:55:45 -08:00
parent 114c344dbb
commit dbd66d7c7c
8 changed files with 288 additions and 1 deletions

17
.github/workflows/build.yml vendored Normal file
View file

@ -0,0 +1,17 @@
name: Build
on:
pull_request:
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.4
- uses: cachix/install-nix-action@v12
- run: nix-build
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.4
- uses: cachix/install-nix-action@v12
- run: nix-shell dev-shell.nix --run "cargo test"