diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a4a722c..40fbbcc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,6 +34,15 @@ jobs: run: yarn run test env: CI: true + - uses: ravsamhq/notify-slack-action@v2 + if: always() + with: + status: ${{ job.status }} + notification_title: "{workflow} has {status_message}" + message_format: "{emoji} *{workflow}* {status_message} in <{repo_url}|{repo}>" + footer: "Linked Repo <{repo_url}|{repo}> | <{workflow_url}|View Workflow>" + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} test_functions: runs-on: ubuntu-latest @@ -46,6 +55,15 @@ jobs: - name: Test run: python -m pytest working-directory: backend + - uses: ravsamhq/notify-slack-action@v2 + if: always() + with: + status: ${{ job.status }} + notification_title: "{workflow} has {status_message}" + message_format: "{emoji} *{workflow}* {status_message} in <{repo_url}|{repo}>" + footer: "Linked Repo <{repo_url}|{repo}> | <{workflow_url}|View Workflow>" + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} code-style: runs-on: ubuntu-latest @@ -53,6 +71,15 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-python@v2 - uses: pre-commit/action@v2.0.3 + - uses: ravsamhq/notify-slack-action@v2 + if: always() + with: + status: ${{ job.status }} + notification_title: "{workflow} has {status_message}" + message_format: "{emoji} *{workflow}* {status_message} in <{repo_url}|{repo}>" + footer: "Linked Repo <{repo_url}|{repo}> | <{workflow_url}|View Workflow>" + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} build-and-deploy-web-app: runs-on: ubuntu-latest