mirror of
https://github.com/Platonic-Systems/process-compose-flake.git
synced 2024-09-11 14:07:00 +03:00
Make test.sh build example; also set -e
This commit is contained in:
parent
ea29723d37
commit
a1fb056f11
5
.github/workflows/ci.yaml
vendored
5
.github/workflows/ci.yaml
vendored
@ -11,11 +11,6 @@ jobs:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Install Nix
|
||||
uses: DeterminateSystems/nix-installer-action@main
|
||||
- name: Build example flake
|
||||
id: example
|
||||
run: |
|
||||
cd ./example
|
||||
nix build -L --override-input process-compose-flake ..
|
||||
- name: Run test
|
||||
id: test
|
||||
run: |
|
||||
|
@ -1,4 +1,11 @@
|
||||
set -euxo pipefail
|
||||
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
# First, build the example.
|
||||
(cd ../example && nix build -L --override-input process-compose-flake ..)
|
||||
|
||||
# Then run the test.
|
||||
rm -f ./data.sqlite
|
||||
nix run -L --override-input process-compose-flake .. .
|
||||
[[ $(cat result.txt) == "Hello" ]] && echo "Test passed" || (echo "Test failed" && exit 1)
|
||||
|
Loading…
Reference in New Issue
Block a user