-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
21 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[email protected] | ||
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 Action build result: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}" | ||
} | ||
} | ||
] | ||
} | ||
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' | ||
|