Repository navigation
81 lines (76 loc) · 2.33 KB
/
Copy pathci.yml
File metadata and controls
81 lines (76 loc) · 2.33 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
name: CI
on:
push:
pull_request:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
quality:
name: Client quality
runs-on: ubuntu-latest
timeout-minutes: 35
env:
CI: true
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version-file: .nvmrc
cache: npm
- run: npm ci
- run: npm audit --audit-level=high
- run: npx playwright install --with-deps chromium
- run: npm run check
- run: npm run check:ui
- name: Upload failed browser evidence
if: failure()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: playwright-failure-${{ github.run_id }}
path: |
playwright-report/
test-results/
if-no-files-found: ignore
retention-days: 7
platform-smoke:
name: Platform smoke (${{ matrix.os }})
runs-on: ${{ matrix.os }}
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
os: [windows-latest, macos-latest]
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version-file: .nvmrc
cache: npm
- run: npm ci
- run: npm run lock:integrity
- run: npm run licenses:check
- name: Parse PowerShell launchers
if: runner.os == 'Windows'
shell: pwsh
run: |
foreach ($path in @('install-dev.ps1', 'run-dev.ps1')) {
$tokens = $null
$errors = $null
[System.Management.Automation.Language.Parser]::ParseFile(
(Resolve-Path -LiteralPath $path),
[ref]$tokens,
[ref]$errors
) | Out-Null
if ($errors.Count -gt 0) {
$errors | ForEach-Object { Write-Error "$path`: $($_.Message)" }
exit 1
}
}
- name: List live-backend E2E on Windows
if: runner.os == 'Windows'
run: npm run e2e:studio:live-backend -- --list
- run: npm run typecheck
- run: npm run build