Fix unit testing workflow #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Unit testing | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- manifests/** | |
pull_request: | |
branches: | |
- main | |
jobs: | |
lib-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: cachix/install-nix-action@v20 | |
with: | |
extra_nix_config: | | |
extra-experimental-features = nix-command flakes | |
- uses: DeterminateSystems/magic-nix-cache-action@v7 | |
- name: Run .#libTests | |
run: | | |
echo "# Test Results" > $GITHUB_STEP_SUMMARY | |
nix run .#libTests | tee -a $GITHUB_STEP_SUMMARY | |
module-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: cachix/install-nix-action@v20 | |
with: | |
extra_nix_config: | | |
extra-experimental-features = nix-command flakes | |
- uses: DeterminateSystems/magic-nix-cache-action@v7 | |
- name: Run .#moduleTests | |
run: | | |
echo "# Test Results" > $GITHUB_STEP_SUMMARY | |
nix run .#moduleTests | tee -a $GITHUB_STEP_SUMMARY |