Skip to content

Test

Test #2751

Workflow file for this run

name: Test
on:
schedule:
- cron: '*/30 * * * *'
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
worker:
- production
- staging
steps:
- name: Checkout Commit
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Install Node.js
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
node-version-file: .nvmrc
cache: npm
- name: Install Dependencies
run: npm ci
- name: Run Tests
run: npm test
env:
VITEST_EXTERNAL_API_URL: ${{ matrix.worker == 'production' && 'https://api.cdnjs.com' || 'https://api.cdnjs.dev' }}