-
Notifications
You must be signed in to change notification settings - Fork 417
44 lines (35 loc) · 1.16 KB
/
tests.yml
File metadata and controls
44 lines (35 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: 🧪 Tests
on:
workflow_dispatch:
# Add remaining triggers
pull_request:
branches: [main]
push:
branches: [main]
jobs:
tests:
name: "🧪 Run All Tests"
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v4
- name: Use Node.js from nvmrc
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
registry-url: "https://registry.npmjs.org"
cache: "pnpm"
- name: Install project dependencies
run: pnpm i
- name: Install Playwright Browsers
run: pnpm --filter tests exec playwright install chromium
- name: Build SolidStart
run: pnpm --filter @solidjs/start build
- name: Build Test Project
run: pnpm --filter tests build
- name: Run all apps/tests (Unit, Node, Browser UI, and E2E)
run: pnpm --filter tests run test:all
# The @solidjs/start package currently has no tests, so we are skipping this step.
# Uncomment if tests are added to the @solidjs/start package.
# - name: Run @solidjs/start unit tests
# run: pnpm --filter @solidjs/start test:ci