Health Check #1130
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: | |
# At minute 0 past hour 0800 and 2000. | |
- cron: '0 8,20 * * *' | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node: [ '12.x', '14.x', '16.x', '18.x' ] | |
name: Node ${{ matrix.node }} | |
steps: | |
- uses: actions/checkout@v2 | |
- run: | | |
git remote set-branches --add origin main beta | |
git fetch | |
- name: Setup Node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Install Dependencies | |
run: yarn install --immutable | |
env: | |
NODE_ENV: development | |
- name: Run Test Script | |
run: yarn test | |
env: | |
NODE_ENV: production | |
GITHUB_TOKEN: ${{ secrets.PA_TOKEN }} |