Skip to content

Bump vite from 6.3.5 to 6.3.6 #145

Bump vite from 6.3.5 to 6.3.6

Bump vite from 6.3.5 to 6.3.6 #145

Workflow file for this run

name: unit tests
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Bootstrap env variables
env:
DATABASE_URL: "file:./evolver.db"
DEFAULT_DEVICE_PORT: 8080
EXCLUDED_PROPERTIES: "name,vial"
run: echo "DATABASE_URL=$DATABASE_URL" >> .env && echo "DEFAULT_DEVICE_PORT=$DEFAULT_DEVICE_PORT" >> .env && echo "EXCLUDED_PROPERTIES=$EXCLUDED_PROPERTIES" >> .env
- name: Install dependencies
run: npm ci --include=dev && npm run bootstrap_dev_db && npm run bootstrap_evolver_ts_client
# This fixes a known npm bug (#4828) with optional dependencies
# Rollup uses platform-specific binaries (Linux/Mac/Windows)
# When running in GitHub Actions (Linux), it needs the Linux-specific binary
# But npm sometimes fails to correctly resolve these platform-specific dependencies
- name: Fix rollup dependency issue
run: |
rm -rf node_modules/.cache
rm -rf node_modules/@rollup
npm install @rollup/rollup-linux-x64-gnu
- name: Run unit tests and generate a coverage report
run: npm run test:coverage
- uses: actions/upload-artifact@v4
if: always()
with:
name: vitest-report
path: vitest-report/
retention-days: 30