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 27446ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion snapshot-tests.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ COPY DESCRIPTION /epikinetics
RUN Rscript -e "devtools::install_deps()"
RUN Rscript -e "install.packages('decor')"

COPY . /epikinetics
COPY . /epikinetics
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(filter='snapshot');df=as.data.frame(res);if(sum(df\$failed) > 0 || any(df\$error)) {q(status=1)}"

0 comments on commit 27446ca

Please sign in to comment.