From 874c3e7e51e36f5b6655efb724dc0989924fffef Mon Sep 17 00:00:00 2001 From: Kevin Amado Date: Mon, 7 Feb 2022 22:51:53 -0500 Subject: [PATCH] feat: build then test --- .github/workflows/pr.yaml | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 9750c7f..6936314 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -14,11 +14,23 @@ jobs: steps: - name: Clone uses: actions/checkout@v2 - - name: Coverage + + - name: Build uses: docker://nixos/nix with: args: > - bash -ex -c " + nix + --extra-experimental-features flakes + --extra-experimental-features nix-command + --extra-substituters http://172.17.0.1:5000?trusted=1 + build + --print-build-logs + + - name: Test + uses: docker://nixos/nix + with: + args: > + bash -ec " source <( \ nix \ --extra-experimental-features flakes \ @@ -31,14 +43,3 @@ jobs: cargo tarpaulin " - - - name: Build and Test - uses: docker://nixos/nix - with: - args: > - nix - --extra-experimental-features flakes - --extra-experimental-features nix-command - --extra-substituters http://172.17.0.1:5000?trusted=1 - build - --print-build-logs