Skip to content

Commit

Permalink
Fix unit testing workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
arnarg committed Aug 1, 2024
1 parent 45c9ac7 commit 08f0764
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/unit-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@ jobs:
- uses: DeterminateSystems/magic-nix-cache-action@v7

- name: Run statix
- name: Run .#libTests
run: |
nix run .#libTests
echo "# Test Results" > $GITHUB_STEP_SUMMARY
nix run .#libTests | tee -a $GITHUB_STEP_SUMMARY
module-tests:
runs-on: ubuntu-latest
Expand All @@ -39,6 +40,7 @@ jobs:
- uses: DeterminateSystems/magic-nix-cache-action@v7

- name: Run statix
- name: Run .#moduleTests
run: |
nix run .#moduleTests
echo "# Test Results" > $GITHUB_STEP_SUMMARY
nix run .#moduleTests | tee -a $GITHUB_STEP_SUMMARY
2 changes: 1 addition & 1 deletion modules/testing/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ in {
reportScript = pkgs.writeShellScript "testing-${config.testing.name}-report-script" ''
set -eo pipefail
printf '${config.testing.report}'
printf '${config.testing.report}\n'
exit ${
if config.testing.success
Expand Down

0 comments on commit 08f0764

Please sign in to comment.