Skip to content

Commit

Permalink
Merge pull request #5 from thiagokokada/upload-coverage
Browse files Browse the repository at this point in the history
.github/nix: upload coverage from testVm
  • Loading branch information
thiagokokada authored Jul 25, 2024
2 parents 4bdab4b + 62632c2 commit a7b0f08
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/nix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.*
5 changes: 2 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
'';
};
}
Expand Down

0 comments on commit a7b0f08

Please sign in to comment.