-
Notifications
You must be signed in to change notification settings - Fork 18
74 lines (62 loc) · 1.87 KB
/
Copy pathon_pull_request.yml
File metadata and controls
74 lines (62 loc) · 1.87 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
name: Run on Pull Request
on:
pull_request:
types: [opened, synchronize, reopened, closed]
env:
NODE_VERSION: 24
PUBLIC_POSTHOG_KEY: ${{ secrets.PUBLIC_POSTHOG_KEY }}
PUBLIC_POSTHOG_HOST: ${{ secrets.PUBLIC_POSTHOG_HOST }}
jobs:
verify-rsbuild-mf-guide:
if: github.event.action != 'closed'
runs-on: depot-ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout documentation
uses: actions/checkout@v6
- name: Checkout pinned canonical example
uses: actions/checkout@v6
with:
repository: ZephyrCloudIO/zephyr-examples
ref: c777c9fac419e674d16d8e608dc218c0e891e1e3
path: .fixtures/zephyr-examples
- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: ${{ env.NODE_VERSION }}
- uses: pnpm/action-setup@v4
with:
version: 10.33.0
run_install: false
- name: Verify guide snippets
env:
RSBUILD_MF_EXAMPLES_ROOT: .fixtures/zephyr-examples
run: pnpm verify:rsbuild-mf-guide
deploy-on-pr-changes:
runs-on: depot-ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
# Set up Node.js
- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: ${{ env.NODE_VERSION }}
# Install dependencies
- uses: pnpm/action-setup@v4
with:
version: 10.33.0
run_install: false
- name: Install dependencies
run: pnpm i
# Run the build
- name: Run build
id: build
env:
ZE_SECRET_TOKEN: ${{ secrets.ZEPHYR_AUTH_TOKEN }}
run: pnpm build
- name: Zephyr deploy summary
uses: ZephyrCloudIO/zephyr-preview-environment-action@main
id: zephyr-summary
with:
github_token: ${{ secrets.GITHUB_TOKEN }}