Skip to content

Commit

Permalink
try again with parallel tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dmou committed Sep 23, 2024
1 parent ec11290 commit 211b485
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/ci-test-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,21 +88,18 @@ jobs:
env:
TEST_RETRY_COUNT: 5
run: |
docker compose -f docker-test.yml exec -e TEST_RETRY_COUNT=$TEST_RETRY_COUNT -e DEPLOY_ENV=ci -T pender bundle exec rails routes
echo 'ran routes'
docker compose -f docker-test.yml exec -e TEST_RETRY_COUNT=$TEST_RETRY_COUNT -e DEPLOY_ENV=ci -T pender bundle exec rake "test" || docker inspect pender-pender-1
echo 'ran test'
# 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
# echo 'ran parallel:spec'
docker compose logs --tail 50 pender
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]" || docker inspect pender-pender-1
echo 'ran tests'
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
echo 'ran parallel:spec'
- name: After PR Tests
id: after-tests
env:
GIT_SHA: ${{ github.sha }}
GIT_COMMITED_AT: ${{ github.event.head_commit.timestamp }}
run: |
docker compose -f docker-test.yml exec -T pender cat /tmp/performance.csv
docker compose -f docker-test.yml exec -T pender cat tmp/performance.csv
docker compose -f docker-test.yml exec -e GIT_COMMIT_SHA=$GIT_SHA -e GIT_COMMITTED_AT=$GIT_COMMITTED_AT -T pender test/test-coverage
- name: Reset cache
Expand Down

0 comments on commit 211b485

Please sign in to comment.