-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (43 loc) · 1.27 KB
/
check-dev.yml
File metadata and controls
53 lines (43 loc) · 1.27 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
name: 基础推送检验
on:
push:
branches:
- main
- dev-*
- test-*
- for/dev-*
jobs:
build-to-deploy:
runs-on: macos-latest
steps:
- name: 检出代码库
uses: actions/checkout@v4
- name: 设置nodejs版本
uses: actions/setup-node@v4
with:
node-version: '22'
# - name: 缓存前端依赖
# uses: actions/cache@v3
# with:
# path: frontend/node_modules
# key: ${{ runner.os }}-frontend-${{ hashFiles('frontend/yarn.lock') }}
- name: 缓存游戏依赖
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-root-${{ hashFiles('yarn.lock') }}
- name: 检查yarn工具
run: |
if ! command -v yarn &> /dev/null; then
npm install -g yarn
fi
# - name: 安装前端依赖
# run: |
# cd frontend && yarn install --ignore-engines --frozen-lockfile
- name: 安装游戏依赖
run: |
yarn install --ignore-engines --frozen-lockfile
- name: 打包测试
run: |
yarn build || echo "build 脚本执行失败或不存在"
# yarn bundle || echo "bundle 脚本执行失败或不存在"