-
Notifications
You must be signed in to change notification settings - Fork 16
46 lines (39 loc) · 949 Bytes
/
debug.yml
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: Debug
on:
pull_request:
branches:
- master
paths:
- 'packages/**'
- 'retinue/**'
- 'package.json'
- '.github/**'
jobs:
serve:
runs-on: windows-2019
steps:
# 获取仓库源码
- uses: actions/checkout@v2
with:
submodules: recursive
ref: ${{ github.ref }}
# 缓存node_modules
- uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
# 安装依赖
- name: Install dependencies
run: yarn
# 单元测试
- name: Build preview
run: yarn test
# 运行构建
- name: Build preview
run: yarn build -p=never
# 上传构建
- name: Upload File
uses: actions/upload-artifact@v2
with:
name: preview
path: release/Flash Collector_*_win-x64.7z