Allow test.sh to be run from any dir

This commit is contained in:
Sridhar Ratnakumar 2023-06-09 14:13:05 -04:00
parent e39066d920
commit d6723f2de3
2 changed files with 1 additions and 1 deletions

View File

@ -19,6 +19,5 @@ jobs:
- name: Run test
id: test
run: |
cd ./test
./test.sh

View File

@ -1,3 +1,4 @@
cd "$(dirname "$0")"
rm -f ./data.sqlite
nix run -L --override-input process-compose-flake .. . -- -t=false
[[ $(cat result.txt) == "Hello" ]] && echo "Test passed" || (echo "Test failed" && exit 1)