-
Notifications
You must be signed in to change notification settings - Fork 385
61 lines (49 loc) · 1.43 KB
/
tests.yml
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: 🧪 Tests
on:
workflow_dispatch:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
tests:
name: "🧪 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: Build SolidStart
run: pnpm --filter @solidjs/start build
- name: Build Test Project
run: pnpm --filter tests build
- name: Run unit tests
run: pnpm --filter tests unit:ci
- name: Install Cypress dependencies
uses: cypress-io/github-action@v6
with:
working-directory: .
runTests: false
- name: E2E Chromium
uses: cypress-io/github-action@v6
with:
install: false
working-directory: packages/tests
start: pnpm start --host 127.0.0.1 --port 3000
wait-on: 'http://127.0.0.1:3000'
browser: chromium
- name: E2E Firefox
uses: cypress-io/github-action@v6
with:
install: false
working-directory: packages/tests
start: pnpm start --host 127.0.0.1 --port 3000
wait-on: 'http://127.0.0.1:3000'
browser: firefox