Skip to content

Commit

Permalink
Add slack reporting for windows tests
Browse files Browse the repository at this point in the history
  • Loading branch information
paolino committed Nov 29, 2023
1 parent f394da8 commit fad4869
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 5 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/e2e-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
29 changes: 28 additions & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: windows
name: Windows Unit Tests

on:
schedule:
Expand Down Expand Up @@ -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'
Expand Down

0 comments on commit fad4869

Please sign in to comment.