Merge branch 'main' of http://8.155.172.147:3001/sion/sionrui
This commit is contained in:
20
.github/workflows/maven.yml
vendored
20
.github/workflows/maven.yml
vendored
@@ -14,17 +14,21 @@ jobs:
|
|||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
java: [ '8', '11', '17' ]
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- name: Set up JDK ${{ matrix.Java }}
|
|
||||||
uses: actions/setup-java@v2
|
- name: Set up JDK 17
|
||||||
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
java-version: ${{ matrix.java }}
|
java-version: '17'
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
cache: maven
|
cache: maven
|
||||||
|
|
||||||
- name: Build with Maven
|
- name: Build with Maven
|
||||||
run: mvn -B package --file pom.xml -Dmaven.test.skip=true
|
run: mvn -B package --file pom.xml -Dmaven.test.skip=true
|
||||||
|
|
||||||
|
- name: Upload artifact
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: yudao-server
|
||||||
|
path: yudao-server/target/*.jar
|
||||||
|
|||||||
26
.github/workflows/yudao-ui-admin.yml
vendored
26
.github/workflows/yudao-ui-admin.yml
vendored
@@ -8,12 +8,12 @@ on:
|
|||||||
# branches: [ master ]
|
# branches: [ master ]
|
||||||
env: # 设置环境变量
|
env: # 设置环境变量
|
||||||
TZ: Asia/Shanghai # 时区(设置时区可使页面中的`最近更新时间`使用时区时间)
|
TZ: Asia/Shanghai # 时区(设置时区可使页面中的`最近更新时间`使用时区时间)
|
||||||
WORK_DIR: yudao-ui-admin #工作目录
|
WORK_DIR: yudao-ui-admin-vue3 #工作目录
|
||||||
|
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
working-directory: yudao-ui-admin
|
working-directory: yudao-ui-admin-vue3
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build: # 自定义名称
|
build: # 自定义名称
|
||||||
@@ -21,31 +21,27 @@ jobs:
|
|||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
node_version: [14.x, 16.x]
|
node_version: [18.x, 20.x]
|
||||||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout # 步骤1
|
- name: Checkout # 步骤1
|
||||||
uses: actions/checkout@v2 # 使用的动作。格式:userName/repoName。作用:检出仓库,获取源码。 官方actions库:https://github.com/actions
|
uses: actions/checkout@v3 # 使用的动作。格式:userName/repoName。作用:检出仓库,获取源码。 官方actions库:https://github.com/actions
|
||||||
|
|
||||||
- name: Install pnpm
|
- name: Install pnpm
|
||||||
uses: pnpm/action-setup@v2.0.1
|
uses: pnpm/action-setup@v2
|
||||||
with:
|
with:
|
||||||
version: 6.15.1
|
version: 8
|
||||||
|
|
||||||
- name: Set node version to ${{ matrix.node_version }}
|
- name: Set node version to ${{ matrix.node_version }}
|
||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node_version }}
|
node-version: ${{ matrix.node_version }}
|
||||||
cache: "yarn"
|
cache: "pnpm"
|
||||||
cache-dependency-path: yudao-ui-admin/yarn.lock
|
cache-dependency-path: yudao-ui-admin-vue3/pnpm-lock.yaml
|
||||||
|
|
||||||
- name: Install deps
|
- name: Install deps
|
||||||
run: node --version && yarn --version && yarn install
|
run: node --version && pnpm --version && pnpm install
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: yarn build:prod
|
run: pnpm build:prod
|
||||||
|
|
||||||
# 查看 workflow 的文档来获取更多信息
|
|
||||||
# @see https://github.com/crazy-max/ghaction-github-pages
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user