-
Notifications
You must be signed in to change notification settings - Fork 4
84 lines (70 loc) · 2.67 KB
/
record-cli.yml
File metadata and controls
84 lines (70 loc) · 2.67 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
name: Regenerate CLI Recordings
on:
workflow_dispatch:
permissions:
contents: write
pull-requests: write
jobs:
record:
name: Record CLI demos
runs-on: ubuntu-latest
services:
postgres:
image: postgres:15
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
ports:
- 5433:5432
options: >-
--health-cmd="pg_isready -U postgres"
--health-interval=10s
--health-timeout=5s
--health-retries=5
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- uses: jdx/mise-action@9dc7d5dd454262207dea3ab5a06a3df6afc8ff26 # v3.4.1
with:
cache: true
- uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build
run: pnpm build
# VHS runtime dependencies: ttyd (terminal multiplexer) and a browser
# (Chrome is pre-installed on ubuntu-latest runners).
- name: Install ttyd
run: |
curl -fsSL https://github.com/tsl0922/ttyd/releases/latest/download/ttyd.x86_64 \
-o /usr/local/bin/ttyd
chmod +x /usr/local/bin/ttyd
# agentstation/vhs fork adds native SVG output support.
- name: Install VHS (agentstation fork)
env:
VHS_VERSION: "0.11.1"
run: |
curl -fsSL "https://github.com/agentstation/vhs/releases/download/v${VHS_VERSION}/vhs_${VHS_VERSION}_linux_x86_64.tar.gz" \
| tar xz -C /usr/local/bin vhs
- name: Install JetBrains Mono font
run: |
mkdir -p ~/.local/share/fonts
curl -fsSL https://github.com/JetBrains/JetBrainsMono/releases/download/v2.304/JetBrainsMono-2.304.zip \
-o /tmp/jbmono.zip
unzip -oq /tmp/jbmono.zip -d /tmp/jbmono
find /tmp/jbmono -name '*.ttf' -exec cp {} ~/.local/share/fonts/ \;
fc-cache -f
- name: Record per-command demos
run: pnpm --filter @prisma-next/cli record --no-cache
- name: Record journey demos
run: pnpm --filter @prisma-next/cli record --no-cache --all-journeys
- name: Create pull request
uses: peter-evans/create-pull-request@v7
with:
commit-message: "chore(cli): regenerate recordings"
title: "chore(cli): regenerate CLI recordings"
body: |
Automated regeneration of CLI terminal recordings (SVG + ASCII).
Triggered by `workflow_dispatch` on `${{ github.ref_name }}`.
branch: chore/regenerate-cli-recordings
delete-branch: true