-
-
Notifications
You must be signed in to change notification settings - Fork 656
92 lines (87 loc) · 2.47 KB
/
Copy pathci.yml
File metadata and controls
92 lines (87 loc) · 2.47 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
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: actions/setup-node@v6
with:
node-version: latest
- uses: pnpm/action-setup@v5
with:
run_install: true
- run: pnpm run lint
test-node-versions:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22, 24]
typescript-version: ["5", "6"]
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
- uses: pnpm/action-setup@v5
- name: Override catalog to TypeScript 5 (backward-compat check)
if: matrix.typescript-version == '5'
run: |
sed -i 's/^ typescript: \^6\..*/ typescript: ^5.9.3/' pnpm-workspace.yaml
grep '^ typescript:' pnpm-workspace.yaml
- run: pnpm install --no-frozen-lockfile
- run: pnpm test
test-e2e:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 22 # Lock to the current stable LTS to fix newer Node stream leaks
- uses: pnpm/action-setup@v5
with:
run_install: true
- run: pnpm exec playwright install --with-deps
- name: Run E2E Tests
run: pnpm run test-e2e
timeout-minutes: 10 # Gracefully drops the job if it manages to hang, saving runner limits
env:
DEBUG: pw:webserver,pw:browser # Dumps real-time initialization data straight to stdout
NODE_ENV: test
- name: Upload Playwright Trace Report
if: always()
uses: actions/upload-artifact@v4
with:
name: playwright-report
path: packages/openapi-fetch/playwright-report/
retention-days: 1
test-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: latest
- uses: pnpm/action-setup@v5
with:
run_install: true
- run: pnpm test
test-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: latest
- uses: pnpm/action-setup@v5
with:
run_install: true
- run: pnpm test