-
-
Notifications
You must be signed in to change notification settings - Fork 665
77 lines (74 loc) · 2.21 KB
/
Copy pathci.yml
File metadata and controls
77 lines (74 loc) · 2.21 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: ci
on:
push:
branches:
- main
- "renovate/**"
pull_request:
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: ./.github/actions/setup
with:
node-version: latest
- run: pnpm run lint
test-node-versions:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22, 24]
steps:
- uses: actions/checkout@v6
- uses: ./.github/actions/setup
with:
node-version: ${{ matrix.node-version }}
- run: pnpm test
test-e2e:
runs-on: ubuntu-latest
# Use the official Playwright image, which ships Chromium, Firefox, WebKit and
# every system dependency they need. That removes the
# `playwright install --with-deps` step, which has been hanging until
# GitHub's 6-hour job limit on every run since 2026-08-24.
#
# Keep the tag in sync with the `@playwright/test` version in
# packages/openapi-fetch (currently 1.59.1).
container:
image: mcr.microsoft.com/playwright:v1.59.1-noble
# recommended by Playwright when running Chromium in a container
options: --ipc=host
# fail fast instead of occupying a runner for 6 hours if anything hangs
timeout-minutes: 15
steps:
- uses: actions/checkout@v6
- uses: ./.github/actions/setup
with:
node-version: 22
# this job installs in ~8s, so caching the store costs more than it saves
pnpm-cache: ""
- run: pnpm run test-e2e
env:
# Firefox refuses to start as root unless $HOME is owned by root, and
# GitHub sets HOME=/github/home, which is owned by pwuser. Chromium and
# WebKit start fine, so without this only the firefox project fails.
HOME: /root
test-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v6
- uses: ./.github/actions/setup
with:
node-version: latest
- run: pnpm test
test-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v6
- uses: ./.github/actions/setup
with:
node-version: latest
- run: pnpm test