sanity #882
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
name: sanity | |
on: | |
schedule: | |
- cron: 0 15 * * * | |
jobs: | |
e2e-run: | |
runs-on: macos-latest | |
if: "!contains(github.event.head_commit.message, '[skip ci]')" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
persist-credentials: false | |
- name: Setup Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 16 | |
- name: Install dependencies | |
run: yarn install --immutable | |
- name: Run CI | |
working-directory: packages/calendar | |
run: yarn run test:playwright | |
- name: Slack Notify Sanity | |
if: success() | |
id: react-calendar-sanity-notification-success | |
uses: voxmedia/github-action-slack-notify-build@v1.5.0 | |
env: | |
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} | |
with: | |
message_id: ${{ steps.slack.outputs.message_id }} | |
channel: react-calendar-github | |
status: SUCCESS | |
color: good | |
- name: Slack Notify Sanity | |
if: failure() | |
id: react-calendar-sanity-notification-fail | |
uses: voxmedia/github-action-slack-notify-build@v1.5.0 | |
env: | |
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} | |
with: | |
message_id: ${{ steps.slack.outputs.message_id }} | |
channel: react-calendar-github | |
status: FAILED | |
color: danger |