From fad48690f5015ad0d40ebcdf85a8ac561674e095 Mon Sep 17 00:00:00 2001 From: paolino Date: Wed, 29 Nov 2023 15:26:54 +0000 Subject: [PATCH] Add slack reporting for windows tests --- .github/workflows/e2e-docker.yml | 6 ++---- .github/workflows/windows.yml | 29 ++++++++++++++++++++++++++++- 2 files changed, 30 insertions(+), 5 deletions(-) diff --git a/.github/workflows/e2e-docker.yml b/.github/workflows/e2e-docker.yml index fe103bbfb26..7770abc9e62 100644 --- a/.github/workflows/e2e-docker.yml +++ b/.github/workflows/e2e-docker.yml @@ -76,11 +76,9 @@ jobs: - name: Fetch preprod snapshot if: steps.cache-node.outputs.cache-hit != 'true' run: | - mkdir state + cd state - mkdir node_db cd node_db - mkdir preprod cd preprod curl -s https://downloads.csnapshots.io/snapshots/testnet/testnet-db-snapshot.json \ | jq -r .[].file_name > snapshot.json @@ -103,7 +101,7 @@ jobs: NODE=${{steps.cardano-node-tag.outputs.NODE_TAG}} \ NODE_CONFIG_PATH=`pwd`/state/configs/preprod \ - DATA=`pwd`/state/node_db/preprod \${{ runner.os }} + DATA=`pwd`/state/node_db/preprod \ WALLET_DATA=`pwd`/state/wallet_db/preprod \ docker-compose -f docker-compose-test.yml up --detach diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 3e2db9c6792..dc92acabf48 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -1,4 +1,4 @@ -name: windows +name: Windows Unit Tests on: schedule: @@ -72,6 +72,33 @@ jobs: - run: '.\\cardano-wallet-launcher-test-unit.exe --color' continue-on-error: true + report: + needs: [cardano-wallet-test-unit, text-class-test-unit, cardano-wallet-launcher-test-unit] + if: always() + runs-on: ubuntu-latest + steps: + - name: Slack Notification on failure + if: failure() + uses: rtCamp/action-slack-notify@v2 + env: + SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }} + SLACK_ICON_EMOJI: ':poop:' + SLACK_USERNAME: 'GitHub Action' + SLACK_MESSAGE: | + *Job Link:* ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} + SLACK_COLOR: '#FF0000' + + - name: Slack Notification on success + if: success() + uses: rtCamp/action-slack-notify@v2 + env: + SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }} + SLACK_ICON_EMOJI: ':rocket:' + SLACK_USERNAME: 'GitHub Action' + SLACK_MESSAGE: | + *Job Link:* ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} + SLACK_COLOR: '#00FF00' + # ADP-2517 - Fix integration tests on Windows # cardano-wallet-test-integration: # name: 'cardano-wallet:integration'