Repository navigation
Run the vitest suite in CI #1
Workflow file for this run
This file contains hidden or 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: Tests | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - uses: actions/setup-node@v7.1.0 | |
| with: | |
| node-version: 22 | |
| cache: npm | |
| # package-lock.json is written by npm 11, and the npm 10 bundled with | |
| # Node 22 rejects it in `npm ci` (see the Dockerfile). | |
| - name: Install npm 11 | |
| run: npm install -g npm@11 | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Run tests | |
| run: npm test |