diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 134134a..d6bb201 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -43,7 +43,7 @@ jobs: - name: Lint run: pnpm eslint . # Ensure you have a lint script in your package.json - + - name: Run Tests continue-on-error: true run: | @@ -53,6 +53,26 @@ jobs: export API_KEY=${{ secrets.API_KEY }} pnpm exec playwright test + - name: Push Slack Notification + uses: slackapi/slack-github-action@v1.25.0 + with: + channel-id: ${{ secrets.SLACK_CHANNEL_ID_GITHUB_NOTIFICATION }} + payload: | + { + "text": "${{ github.repository }}: API Integration Tests have been completed. Check the results at github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}", + "blocks": [ + { + "type": "section", + "text": { + "type": "mrkdwn", + "text":"${{ github.repository }}: API Integration Tests have been completed. \nCheck the results at https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" + } + } + ] + } + env: + SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} + - name: Upload Test Results uses: actions/upload-artifact@v2 # if: failure() && github.event_name == 'push' && github.ref == 'refs/heads/main'