From 62632c257b064e59b0af5c07e0dc88059bf5ab63 Mon Sep 17 00:00:00 2001 From: Thiago Kenji Okada Date: Thu, 25 Jul 2024 17:51:45 +0100 Subject: [PATCH] .github/nix: upload coverage from testVm --- .github/workflows/nix.yaml | 16 +++++++++------- flake.nix | 5 ++--- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/.github/workflows/nix.yaml b/.github/workflows/nix.yaml index eb65ff9..1fff9bb 100644 --- a/.github/workflows/nix.yaml +++ b/.github/workflows/nix.yaml @@ -16,12 +16,14 @@ jobs: - uses: DeterminateSystems/magic-nix-cache-action@main - - run: nix build -L + - name: build package + run: nix build -L - - run: nix flake check -L + - name: run VM tests + run: nix build .#checks.x86_64-linux.testVm -L - # - uses: actions/upload-artifact@v4 - # with: - # name: coverage - # path: | - # hyprland-go.* + - uses: actions/upload-artifact@v4 + with: + name: coverage + path: | + result/hyprland-go.* diff --git a/flake.nix b/flake.nix index 625d1bb..32a92d4 100644 --- a/flake.nix +++ b/flake.nix @@ -128,9 +128,8 @@ print(machine.succeed("cat ${testLog}")) print(machine.succeed("exit $(cat ${testFinished})")) - # Not working for some reason - # machine.copy_from_vm("${covOut}") - # machine.copy_from_vm("${covHtml}") + machine.copy_from_vm("${covOut}") + machine.copy_from_vm("${covHtml}") ''; }; }