Skip to content

Commit

Permalink
chore(testing): add slack notifications on run
Browse files Browse the repository at this point in the history
  • Loading branch information
akiva10b committed Mar 10, 2024
1 parent 1f6b5d1 commit fac1dbc
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/integration-testing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
run-tests:
name: "Playwright" # This name is referenced when slacking status
needs:
- build-derived
- variables
Expand Down Expand Up @@ -215,3 +216,22 @@ jobs:
retention-days: 30
- name: Uninstall
run: helm delete integration-${{ needs.variables.outputs.commit }} -n ${{ secrets.DEV_SANDBOX_NAMESPACE }} --debug --timeout 10m0s
ending-notification:
runs-on: ubuntu-latest
if: ${{ always() && github.event_name == 'pull_request' }}
needs:
- run-tests
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'
- run: npm ci
working-directory: ./build/notify
- run: node notifyEnd.js
working-directory: ./build/notify
env:
SLACK_TEST_SUCCESS_WEBHOOK_URL: ${{secrets.SLACK_TEST_SUCCESS_WEBHOOK_URL}}
SLACK_TEST_FAILURE_WEBHOOK_URL: ${{secrets.SLACK_TEST_FAILURE_WEBHOOK_URL}}
GITUSER_SLACK_MAP: ${{secrets.GITUSER_SLACK_MAP}}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions build/notify/notifyEnd.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ console.log(`
const jobKeys = [
"Jest",
"PyTest",
"Playwright",
];

(async function() {
Expand Down

0 comments on commit fac1dbc

Please sign in to comment.