From ae03ab673a93d7731d10bc3cbafcea81e676568f Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sun, 26 Jun 2022 10:06:34 -0700 Subject: [PATCH] update CI --- .github/workflows/test.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 14d419814..bfcddbfc6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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