mirror of
https://github.com/bulwarkmail/webmail.git
synced 2026-10-31 16:13:15 +00:00
32 lines
817 B
YAML
32 lines
817 B
YAML
name: Tests
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
jobs:
|
|
vitest:
|
|
name: vitest
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 30
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Node
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
# Matches the version the standalone release build uses; the repo has
|
|
# no .nvmrc or "engines" field to read it from.
|
|
node-version: 22
|
|
cache: npm
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
|
|
- name: Run test suite
|
|
# forks + a small worker count keeps the load-sensitive component tests
|
|
# from timing out on the shared runners; the longer per-test timeout
|
|
# covers the jsdom-heavy suites.
|
|
run: npx vitest run --pool=forks --maxWorkers=2 --testTimeout=15000
|