Health check #1025
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: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node: ['10', '12', '14', '16'] | |
max-parallel: 1 | |
name: Node ${{ matrix.node }} Test | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v2 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Install Node Modules | |
run: npm install | |
- name: Build package | |
run: npm run build | |
- name: Run tests | |
env: | |
SANDBOX_API_KEY: ${{ secrets.SANDBOX_API_KEY }} | |
run: npm 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 |