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 3fd83be commit 6eab0e1
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 24 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/lib/slack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Report to Slack

on:
workflow_call:

jobs:
- 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: |
*GitHub Action: ${{ github.workflow }} failed!*
*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_COLOR: '#00FF00'
57 changes: 33 additions & 24 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,38 +41,47 @@ jobs:
name: cardano-wallet-tests-win64
path: ${{ env.WORK_DIR }}/cardano-wallet-tests-win64



cardano-wallet-test-unit:
name: 'cardano-wallet:unit'
needs: setup
runs-on: windows-2022
steps:
- uses: actions/download-artifact@v3
with:
name: cardano-wallet-tests-win64
- run: '.\\cardano-wallet-test-unit.exe --color --jobs 1 --skip /Cardano.Wallet.DB.Sqlite/ +RTS -M2G -N2'
- uses: actions/download-artifact@v3
with:
name: cardano-wallet-tests-win64
- run: '.\\cardano-wallet-test-unit.exe --color --jobs 1 --skip /Cardano.Wallet.DB.Sqlite/ +RTS -M2G -N2'
- uses: ./lib/slack.yml

text-class-test-unit:
name: 'test-class:unit'
needs: setup
runs-on: windows-2022
steps:
- uses: actions/download-artifact@v3
with:
name: cardano-wallet-tests-win64
- run: '.\\text-class-test-unit.exe --color'
# text-class-test-unit:
# steps:
# - name: 'test-class:unit'
# needs: setup
# runs-on: windows-2022
# steps:
# - uses: actions/download-artifact@v3
# with:
# name: cardano-wallet-tests-win64
# - run: '.\\text-class-test-unit.exe --color'
# - name: Notify to Slack
# uses: ./lib/slack.yml

cardano-wallet-launcher-test-unit:
name: 'cardano-wallet-launcher:unit'
needs: setup
runs-on: windows-2022
steps:
- uses: actions/download-artifact@v3
with:
name: cardano-wallet-tests-win64
- run: '.\\cardano-wallet-launcher-test-unit.exe --color'
continue-on-error: true
# cardano-wallet-launcher-test-unit:
# steps:
# - name: 'cardano-wallet-launcher:unit'
# needs: setup
# runs-on: windows-2022
# steps:
# - uses: actions/download-artifact@v3
# with:
# name: cardano-wallet-tests-win64
# - run: '.\\cardano-wallet-launcher-test-unit.exe --color'
# continue-on-error: true
# - name: Notify to Slack
# uses: ./lib/slack.yml

# ADP-2517 - Fix integration tests on Windows
# # ADP-2517 - Fix integration tests on Windows
# cardano-wallet-test-integration:
# name: 'cardano-wallet:integration'
# needs: setup
Expand Down

0 comments on commit 6eab0e1

Please sign in to comment.