[ci] try running tests in nix-shell

This commit is contained in:
Will Owens
2024-02-23 03:29:39 -05:00
parent f12bab727b
commit fd4096ed98
2 changed files with 11 additions and 3 deletions

View File

@@ -26,5 +26,12 @@ jobs:
- uses: cachix/install-nix-action@v25
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- run: nix build
- run: nix flake check
nix_path: nixpkgs=channel:nixos-unstable
- run: |
git config --global init.defaultBranch master
git config --global user.name scm_breeze@scm_breeze
git config --global user.email "SCM Breeze"
- run: nix-shell -p bash zsh --run ./run_tests.sh
# - run: nix-shell -p shunit2 -i ./run_tests.sh
# - run: nix build
# - run: nix flake check

View File

@@ -15,6 +15,7 @@ for test in $(find test/lib -name *_test.sh); do
for shell in $TEST_SHELLS; do
echo "== Running tests with [$shell]: $test"
$shell $test || failed=true
printf '==\n\n'
done
done