Skip to content

Commit 43a75a3

Browse files
dmouvasconsaurus
authored andcommitted
fail pipeline if tests fail
1 parent c3ad6b5 commit 43a75a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ci-test-pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ jobs:
5050
5151
- name: Set up configuration
5252
run: |
53-
touch .env
5453
cp config/database.yml.example config/database.yml
5554
cp config/sidekiq.yml.example config/sidekiq.yml
5655
cp config/config.yml.example config/config.yml
@@ -87,7 +86,6 @@ jobs:
8786
id: run-tests
8887
env:
8988
TEST_RETRY_COUNT: 5
90-
continue-on-error: true
9189
run: |
9290
docker compose -f docker-test.yml exec -e TEST_RETRY_COUNT=$TEST_RETRY_COUNT -e DEPLOY_ENV=ci -T pender bundle exec rake "parallel:test[3]"
9391
docker compose -f docker-test.yml exec -e TEST_RETRY_COUNT=$TEST_RETRY_COUNT -e DEPLOY_ENV=ci -T pender bundle exec rake parallel:spec
@@ -98,6 +96,7 @@ jobs:
9896
GIT_SHA: ${{ github.sha }}
9997
GIT_COMMITED_AT: ${{ github.event.head_commit.timestamp }}
10098
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
99+
if: success() || failure()
101100
run: |
102101
docker compose -f docker-test.yml exec -T pender cat tmp/performance.csv
103102
docker compose -f docker-test.yml exec -T pender ls -l coverage/
@@ -116,6 +115,7 @@ jobs:
116115
117116
- name: Reset cache
118117
id: reset-cache
118+
if: success() || failure()
119119
run: |
120120
rm -rf /tmp/.buildx-cache
121121
mv /tmp/.buildx-cache-new /tmp/.buildx-cache

0 commit comments

Comments
 (0)