Skip to content

Commit

Permalink
run alegre ci
Browse files Browse the repository at this point in the history
  • Loading branch information
chinelo-obitube committed Nov 5, 2024
1 parent fc0629c commit e71b4fd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/ci-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ jobs:
GITHUB_JOB_NAME: ${{ github.job }}
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
GITHUB_PULL_REQUEST: ${{ github.event_name}}
AWS_REGION: eu-west-1
GITHUB_TEST_RESULT: ${{ steps.unit-tests.outcome}}
run: |
docker compose exec alegre coverage xml
if [[ "GITHUB_PULL_REQUEST" != 'pull_request' && "$GITHUB_JOB_NAME" != "contract-testing" ]]; then ./cc-test-reporter after-build -t coverage.py -r $CC_TEST_REPORTER_ID --exit-code $GITHUB_TEST_RESULT; fi
Expand Down Expand Up @@ -168,16 +168,17 @@ jobs:
- name: Run contract Tests
id: contract-tests
run: |
docker compose exec alegre make contract_testing
- name: After contract Test
env:
GITHUB_E: ${{ github.event_name}}
GITHUB_PULL_REQUEST: ${{ github.event_name}}
GITHUB_COMMIT_SHA: ${{ github.sha }}
GITHUB_JOB_NAME: ${{ github.job }}
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
AWS_REGION: eu-west-1
GITHUB_TEST_RESULT: ${{ steps.contract-tests.outcome}}
run: |
docker compose exec alegre coverage xml
if [[ "GITHUB_PULL_REQUEST" == "false" && "$GITHUB_JOB_NAME" != "contract-testing" ]]; then ./cc-test-reporter after-build -t coverage.py -r $CC_TEST_REPORTER_ID --exit-code $GITHUB_TEST_RESULT; fi

0 comments on commit e71b4fd

Please sign in to comment.