[ci] try running tests in nix-shell
This commit is contained in:
11
.github/workflows/test.yml
vendored
11
.github/workflows/test.yml
vendored
@@ -26,5 +26,12 @@ jobs:
|
|||||||
- uses: cachix/install-nix-action@v25
|
- uses: cachix/install-nix-action@v25
|
||||||
with:
|
with:
|
||||||
github_access_token: ${{ secrets.GITHUB_TOKEN }}
|
github_access_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- run: nix build
|
nix_path: nixpkgs=channel:nixos-unstable
|
||||||
- run: nix flake check
|
- 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
|
||||||
|
|||||||
@@ -10,11 +10,12 @@ if [ -z "$TEST_SHELLS" ]; then
|
|||||||
fi
|
fi
|
||||||
echo "== Will run all tests with following shells: ${TEST_SHELLS}"
|
echo "== Will run all tests with following shells: ${TEST_SHELLS}"
|
||||||
|
|
||||||
cd -P -- "${0%/*}" # Change to directory this script lives in
|
cd -P -- "${0%/*}" # Change to directory this script lives in
|
||||||
for test in $(find test/lib -name *_test.sh); do
|
for test in $(find test/lib -name *_test.sh); do
|
||||||
for shell in $TEST_SHELLS; do
|
for shell in $TEST_SHELLS; do
|
||||||
echo "== Running tests with [$shell]: $test"
|
echo "== Running tests with [$shell]: $test"
|
||||||
$shell $test || failed=true
|
$shell $test || failed=true
|
||||||
|
printf '==\n\n'
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user