Skip to content

Commit

Permalink
make sure snapshot action fails on CI if tests fail
Browse files Browse the repository at this point in the history
  • Loading branch information
hillalex committed Nov 10, 2024
1 parent 0cbe811 commit 68422e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/snapshots/test-snapshots
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
set -ex

docker build . -f snapshot-tests.Dockerfile -t epikinetics-test
docker run epikinetics-test Rscript -e "devtools::test(filter='snapshot')"
docker run epikinetics-test Rscript -e "res=devtools::test(reporter='summary', filter = 'snapshot');df=as.data.frame(res);if(sum(df$failed) > 0 || any(df$error)) {q(status=1)}"

0 comments on commit 68422e1

Please sign in to comment.