Repository navigation
106 lines (101 loc) · 4.42 KB
/
Copy pathci.yml
File metadata and controls
106 lines (101 loc) · 4.42 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
name: Full validation
on:
workflow_call:
workflow_dispatch:
permissions:
contents: read
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: 24
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm lint
- run: pnpm search:check
# Translations are reviewed against released documentation, matching the deployment build.
- run: pnpm sync
- run: pnpm docs:release-notes
- run: pnpm test
- run: pnpm docs:contracts
- run: pnpm docs:check
- run: pnpm typecheck
# next build peaks near 17 GB (Turbopack plus its loader processes), above the runner's 16 GB, and some runners
# have no swap: there the build stalls instead of failing. 8 GB of swap lets it finish in about 4 minutes.
- name: Add swap for next build
run: |
sudo fallocate -l 8G /mnt/next-build.swap
sudo chmod 600 /mnt/next-build.swap
sudo mkswap /mnt/next-build.swap
sudo swapon /mnt/next-build.swap
- run: pnpm exec next build
- run: pnpm check:assets
- run: pnpm check:links
- run: pnpm check:seo
- run: pnpm exec playwright install --with-deps chromium
- run: pnpm exec playwright test tests/site-quality.spec.ts tests/mobile-delivery.spec.ts tests/onboarding-merge.spec.ts tests/stable-home.spec.ts tests/browser-platform-setup.spec.ts tests/documentation-diagrams.spec.ts tests/about-project.spec.ts tests/user-docs-refresh.spec.ts tests/command-reference.spec.ts tests/file-attachments.spec.ts tests/reader-security.spec.ts tests/reader-guides.spec.ts tests/drive-docs.spec.ts tests/legal-pages.spec.ts tests/zoom-docs.spec.ts tests/scenario-pages.spec.ts
env:
PLAYWRIGHT_EXPORT: "1"
- run: pnpm check:browser-timings
- name: Save browser diagnostics
if: always()
continue-on-error: true
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: playwright-${{ github.job }}-${{ github.run_attempt }}
path: |
playwright-report/results.json
test-results/
if-no-files-found: ignore
retention-days: 7
compression-level: 1
search-playground:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: 24
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm sync
- run: pnpm docs:release-notes
# next build peaks near 17 GB (Turbopack plus its loader processes), above the runner's 16 GB, and some runners
# have no swap: there the build stalls instead of failing. 8 GB of swap lets it finish in about 4 minutes.
- name: Add swap for next build
run: |
sudo fallocate -l 8G /mnt/next-build.swap
sudo chmod 600 /mnt/next-build.swap
sudo mkswap /mnt/next-build.swap
sudo swapon /mnt/next-build.swap
- run: pnpm exec next build
- run: pnpm check:assets
- run: pnpm exec playwright install --with-deps chromium
# The dev server compiles each route on its first request; parallel workers time out waiting for it.
- run: pnpm exec playwright test tests/heading-fonts.spec.ts tests/search-playground.spec.ts tests/doc-hints.spec.ts
env:
PLAYWRIGHT_EXPORT: "1"
- run: pnpm check:browser-timings
- name: Save browser diagnostics
if: always()
continue-on-error: true
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: playwright-${{ github.job }}-${{ github.run_attempt }}
path: |
playwright-report/results.json
test-results/
if-no-files-found: ignore
retention-days: 7
compression-level: 1
windows_install:
uses: ./.github/workflows/windows-install.yml