diff --git a/.github/workflows/api.yml b/.github/workflows/api.yml index 354becd4..c02f234f 100644 --- a/.github/workflows/api.yml +++ b/.github/workflows/api.yml @@ -46,7 +46,7 @@ jobs: cd /app if [ -e tests/newman/tide.collection.json ] then - if [[ ${TEST_NEWMAN_DISABLE_CORE} == true ]] + if [[ "${TEST_NEWMAN_DISABLE_CORE}" == "true" ]] then echo "==> Core Tests are disabled by env var TEST_NEWMAN_DISABLE_CORE. Skip the test." else diff --git a/.github/workflows/notify_slack.yml b/.github/workflows/notify_slack.yml index b5b1ec1e..a05bebb5 100644 --- a/.github/workflows/notify_slack.yml +++ b/.github/workflows/notify_slack.yml @@ -60,6 +60,16 @@ jobs: else echo TEST_ENVIRONMENTS="*BE URL:* $BE_BASE_URL \n *FE URL:* $FE_BASE_URL" >> $GITHUB_ENV fi + env: + BE_BASE_URL: ${{ inputs.be_url }} + FE_BASE_URL: ${{ inputs.fe_url }} + - name: prepare-report-api + if: ${{ inputs.test_type == ':postman:' }} + run: | + echo "REPORT_TEXT=API test report is stored in the CI job summary artifacts" >> $GITHUB_ENV + - name: prepare-report-e2e + if: ${{ inputs.test_type != ':postman:' }} + run: | if [ -f "report-url.txt" -a -s "report-url.txt" ]; then echo "Workflow status is $WORKFLOW_CONCLUSION" if [ "$WORKFLOW_CONCLUSION" = "success" ]; then @@ -70,9 +80,6 @@ jobs: else echo "REPORT_TEXT=:crying_cat_face: No report found. Testing may have been skipped." >> $GITHUB_ENV fi - env: - BE_BASE_URL: ${{ inputs.be_url }} - FE_BASE_URL: ${{ inputs.fe_url }} - name: sdp-test-report-success uses: slackapi/slack-github-action@v1.24.0 if: env.WORKFLOW_CONCLUSION == 'success' @@ -158,4 +165,4 @@ jobs: LINK: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} BRANCH_LINK: ${{ github.event.pull_request && github.head_ref || github.ref_name }} SLACK_BOT_TOKEN: ${{ secrets.TEST_SLACK_BOT_TOKEN }} - ARTIFACTS_URL: "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" \ No newline at end of file + ARTIFACTS_URL: "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"