Health Check #803
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: [ '18.x', '20.x' ] | |
name: Node ${{ matrix.node }} | |
steps: | |
- uses: actions/checkout@v2 | |
- run: | | |
git remote set-branches --add origin main | |
git fetch | |
- name: Setup Node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Install Dependencies | |
run: npm ci | |
env: | |
NODE_ENV: development | |
- name: Run Test Script | |
run: npm run test | |
env: | |
NODE_ENV: production |