Skip to content

Commit

Permalink
fix failing script
Browse files Browse the repository at this point in the history
  • Loading branch information
chinelo-obitube authored and chinelo-obitube committed Jul 11, 2024
1 parent a01a778 commit 01bcd36
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 129 deletions.
47 changes: 36 additions & 11 deletions .github/workflows/ci-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,29 @@ jobs:
sleep 10
touch tmp/parallel_runtime_test.log
chmod +w tmp/parallel_runtime_test.log
- name: Run Functional Tests
id: run-tests
env:
TEST_RETRY_COUNT: 3
run: |
docker-compose exec -e TEST_RETRY_COUNT=$TEST_RETRY_COUNT -T -e PATTERN='models mailers integration workers lib contract' api test/run-tests.sh
- name: After functional Tests
id: after-functional-tests
env:
GIT_SHA: ${{ github.sha }}
GIT_COMMITED_AT: ${{ github.event.head_commit.timestamp }}
run: |
docker-compose exec -T -e GIT_COMMIT_SHA=${{ github.sha }} \
-e GIT_COMMITTED_AT=${{ github.event.head_commit.timestamp }} \
-e CC_TEST_REPORTER_ID=$CC_TEST_REPORTER_ID \
-e PATH=$PATH \
-e JOB_NAME=functional-tests \
-e AWS_CONFIG_FILE=/app/credentials \
api test/test-coverage.sh

unit-tests:
runs-on: ubuntu-latest

Expand Down Expand Up @@ -155,6 +172,20 @@ jobs:
TEST_RETRY_COUNT: 3
run: |
docker-compose exec -e TEST_RETRY_COUNT=$TEST_RETRY_COUNT -T -e PATTERN='controllers contract' api test/run-tests.sh
- name: After unit Tests
id: unit-tests
env:
GIT_SHA: ${{ github.sha }}
GIT_COMMITED_AT: ${{ github.event.head_commit.timestamp }}
run: |
docker-compose exec -T -e GIT_COMMIT_SHA=${{ github.sha }} \
-e GIT_COMMITTED_AT=${{ github.event.head_commit.timestamp }} \
-e CC_TEST_REPORTER_ID=$CC_TEST_REPORTER_ID \
-e PATH=$PATH \
-e JOB_NAME=unit-tests \
-e AWS_CONFIG_FILE=/app/credentials \
api test/test-coverage.sh
contract-tests:
runs-on: ubuntu-latest

Expand Down Expand Up @@ -221,21 +252,15 @@ jobs:
sleep 10
touch tmp/parallel_runtime_test.log
chmod +w tmp/parallel_runtime_test.log
- name: Run Contract Tests
id: run-tests
env:
TEST_RETRY_COUNT: 3
run: |
docker-compose exec -e TEST_RETRY_COUNT=$TEST_RETRY_COUNT -T -e PATTERN='controllers models mailers integration workers lib' api test/run-tests.sh
after_script:
needs: [functional-tests, unit-tests, contract-tests]
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: After PR Tests
- name: After contract Tests
id: after-tests
env:
GIT_SHA: ${{ github.sha }}
Expand All @@ -245,6 +270,6 @@ jobs:
-e GIT_COMMITTED_AT=${{ github.event.head_commit.timestamp }} \
-e CC_TEST_REPORTER_ID=$CC_TEST_REPORTER_ID \
-e PATH=$PATH \
-e JOB_NAME=functional_tests \
-e JOB_NAME=contract-tests \
-e AWS_CONFIG_FILE=/app/credentials \
api test/test-coverage.sh
api test/test-coverage.sh
118 changes: 0 additions & 118 deletions .github/workflows/testing.yaml

This file was deleted.

0 comments on commit 01bcd36

Please sign in to comment.