From 68422e1db69227a1c0b9b6a1b658ba47550dbfcc Mon Sep 17 00:00:00 2001 From: "alex.hill@gmail.com" Date: Sun, 10 Nov 2024 13:19:13 +0000 Subject: [PATCH] make sure snapshot action fails on CI if tests fail --- tests/snapshots/test-snapshots | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/snapshots/test-snapshots b/tests/snapshots/test-snapshots index b11367a..de1b190 100755 --- a/tests/snapshots/test-snapshots +++ b/tests/snapshots/test-snapshots @@ -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)}"