chore(deps): update vitest monorepo to v2 (major) #1510
Workflow file for this run
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: Test | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
workflow_dispatch: | |
env: | |
DISCORD_ID: ${{ vars.DISCORD_ID }} | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
pull-requests: write | |
timeout-minutes: 15 | |
steps: | |
- uses: actions/checkout@v4.1.7 | |
- uses: actions/setup-node@v4.0.3 | |
with: | |
node-version-file: ".nvmrc" | |
- name: Restore npm cache | |
uses: actions/cache@v4 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- name: Install dependencies | |
run: npm ci | |
- name: Run unit tests | |
run: npm run test:unit | |
- name: Report Coverage | |
if: always() | |
uses: davelosert/vitest-coverage-report-action@v2 |