Skip to content

Commit

Permalink
add continue on error
Browse files Browse the repository at this point in the history
  • Loading branch information
BiancaIalangi committed Dec 11, 2024
1 parent 3dfd303 commit e07a193
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/contracts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -204,15 +204,15 @@ jobs:
run: sc-meta cs install

- name: Run the interactor tests
continue-on-error: false
env:
RUSTFLAGS: ""
run: |
output=$(sc-meta test -c 2>&1)
set +e
output=$(sc-meta cs start & sc-meta test -c 2>&1)
if echo "$output" | grep -q "none of the selected packages contains these features: chain-simulator-tests"; then
echo "None of the selected packages contains chain-simulator-tests"
exit 0
elif echo "$output" | grep -q "2: Connection refused (os error 111)"; then
sc-meta cs start & sc-meta test -c
fi
- name: Stop the chain simulator
Expand Down

0 comments on commit e07a193

Please sign in to comment.