-
-
Notifications
You must be signed in to change notification settings - Fork 340
36 lines (31 loc) · 812 Bytes
/
pr-check.yml
File metadata and controls
36 lines (31 loc) · 812 Bytes
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
name: Build Check
on:
pull_request:
types:
- opened
- synchronize
# 任务
jobs:
build-webgal-static-webpage :
# 服务器环境:最新版 Ubuntu
runs-on: ubuntu-latest
steps:
# 拉取代码
- name: Checkout
uses: actions/checkout@v2
with:
persist-credentials: false
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version-file: package.json
cache: 'yarn'
# 安装依赖
- name: Install
run: npm install yarn -g && yarn install
# 运行 parser 测试
- name: Parser Test
run: yarn parser:test --run
# 生成静态文件
- name: Build
run: yarn build && cd ./packages/webgal && touch dist/.nojekyll