-
Notifications
You must be signed in to change notification settings - Fork 1
79 lines (75 loc) · 2.63 KB
/
Copy pathci.yml
File metadata and controls
79 lines (75 loc) · 2.63 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
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
verify:
name: Typecheck, Test, Build
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v4.4.0
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: 22
cache: pnpm
- name: Show package manager config
run: |
pnpm --version
pnpm config get registry
- name: Install dependencies
run: |
set +e
pnpm install --frozen-lockfile --reporter append-only 2>&1 | tee pnpm-install.log
status=${PIPESTATUS[0]}
if [ "$status" -ne 0 ]; then
echo "::group::pnpm install failure tail"
tail -120 pnpm-install.log
echo "::endgroup::"
message=$(tail -40 pnpm-install.log | sed -e 's/%/%25/g' -e 's/\r/%0D/g' -e ':a;N;$!ba;s/\n/%0A/g')
echo "::error title=pnpm install failed::$message"
exit "$status"
fi
- run: pnpm typecheck
- run: pnpm test
- run: pnpm build
- run: pnpm check:public-packages
- run: pnpm check:public-api
- run: pnpm pack:dry-run
safety:
name: Browser Safety Smoke
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v4.4.0
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: 22
cache: pnpm
- name: Show package manager config
run: |
pnpm --version
pnpm config get registry
- name: Install dependencies
run: |
set +e
pnpm install --frozen-lockfile --reporter append-only 2>&1 | tee pnpm-install.log
status=${PIPESTATUS[0]}
if [ "$status" -ne 0 ]; then
echo "::group::pnpm install failure tail"
tail -120 pnpm-install.log
echo "::endgroup::"
message=$(tail -40 pnpm-install.log | sed -e 's/%/%25/g' -e 's/\r/%0D/g' -e ':a;N;$!ba;s/\n/%0A/g')
echo "::error title=pnpm install failed::$message"
exit "$status"
fi
- run: pnpm exec playwright install --with-deps chromium webkit
- run: pnpm test:gallery
- run: pnpm test:safety