Health check #822
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: Health check | |
on: | |
schedule: | |
- cron: '0 17 * * *' | |
jobs: | |
build-and-test: | |
name: Run tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v2 | |
- name: Setup Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.0.2 | |
bundler-cache: true | |
- name: Run tests | |
env: | |
SANDBOX_API_KEY: ${{ secrets.SANDBOX_API_KEY }} | |
run: make test | |
- name: Notify slack | |
if: failure() | |
uses: kpritam/slack-job-status-action@v1 | |
with: | |
job-status: ${{ job.status }} | |
slack-bot-token: ${{ secrets.SLACK_BOT_TOKEN }} | |
channel: eng-warnings |