update CI

This commit is contained in:
Mitchell Hashimoto
2022-06-26 10:06:34 -07:00
parent 5a7c40e3f1
commit ae03ab673a

View File

@ -39,3 +39,25 @@ jobs:
# will ensure we have all our dependencies.
- name: test
run: nix develop -c zig build -Dtarget=${{ matrix.target }}
test:
strategy:
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
submodules: recursive
fetch-depth: 0
# Install Nix and use that to run our tests so our environment matches exactly.
- uses: cachix/install-nix-action@v17
with:
nix_path: nixpkgs=channel:nixos-unstable
# Run our go tests within the context of the dev shell from the flake. This
# will ensure we have all our dependencies.
- name: test
run: nix develop -c zig build test