API status #276
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: API status | |
# Checks whether the API is active and working on a regular schedule | |
on: | |
schedule: | |
- cron: "0 0 * * *" # once a day | |
workflow_dispatch: | |
jobs: | |
api-status: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
- name: Install dependencies | |
run: npm install | |
- name: Test API | |
run: npm run test-api |