forked from longbridge/gpui-kit
-
Notifications
You must be signed in to change notification settings - Fork 50
46 lines (45 loc) · 1.29 KB
/
Copy pathtest-docs.yml
File metadata and controls
46 lines (45 loc) · 1.29 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
name: Test Docs
on:
pull_request:
paths:
- "website/**"
- "themes/**"
- "script/build-website-versions"
- "script/snapshot-website"
- "script/test-snapshot-website"
- ".github/workflows/test-docs.yml"
- "crates/base/**"
- "crates/story-web/**"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Checkout latest approved showcases
uses: actions/checkout@v4
with:
repository: longbridge/gpui-kit-showcases
ref: main
path: .showcases
persist-credentials: false
- uses: oven-sh/setup-bun@v1
with:
bun-version: 1.4.0
- name: Install Showcase validation and rendering dependencies
working-directory: .showcases
run: bun install --frozen-lockfile
- name: Install
working-directory: website
run: bun install
- name: Build
working-directory: website
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SHOWCASES_DIR: ${{ github.workspace }}/.showcases
run: |
../script/test-snapshot-website
bun run test:showcases
bun run build
bun run test:seo
bun run test:versioned-examples