Repository navigation
57 lines (54 loc) · 1.83 KB
/
Copy pathtest.yml
File metadata and controls
57 lines (54 loc) · 1.83 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
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Test Suite
on: [pull_request]
jobs:
unit-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- run: bun install
- run: bun test tests/unit tests/integration
- run: bunx eslint "lib/**/*.js" "app/**/*.{js,jsx}" "components/**/*.{js,jsx}" "tests/**/*.{js,jsx}"
- run: shellcheck ci/process-submissions.sh
e2e-tests:
# Matrix execution: one runner per browser so the suites run in parallel.
# The Playwright webServer builds the static export (bun run build) and
# serves ./out with GitHub Pages semantics (scripts/serve-out.py).
strategy:
fail-fast: false
matrix:
browser: [chromium, firefox, webkit]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- run: bun install
- run: bunx playwright install --with-deps ${{ matrix.browser }}
- run: bunx playwright test --project=${{ matrix.browser }}
- uses: actions/upload-artifact@v4
if: failure()
with:
name: playwright-report-${{ matrix.browser }}
path: playwright-report/
retention-days: 7
e2e-basepath:
# Sub-path deployment leg (GitHub Pages project sites): NEXT_PUBLIC_BASE_PATH
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- run: bun install
- run: bunx playwright install --with-deps chromium
- run: bunx playwright test --config playwright.basepath.config.js
- uses: actions/upload-artifact@v4
if: failure()
with:
name: playwright-report-basepath
path: playwright-report/
retention-days: 7