From afd8b64813fda475da6864f445bf2a36ee0b4a8c Mon Sep 17 00:00:00 2001 From: Linus Rath Date: Mon, 7 Sep 2026 22:34:47 +0200 Subject: [PATCH] feat: run the test suite in CI #647 --- .github/workflows/tests.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 000000000..40b9e5bd8 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,31 @@ +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