This commit is contained in:
@@ -7,27 +7,27 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
# 1. 检出代码 - 使用 Gitea.com 的镜像
|
# 1. 检出代码 - 使用 Gitea.com 的镜像
|
||||||
- name: 检出代码
|
- name: 检出代码
|
||||||
uses: https://gitea.com/actions/checkout # 使用完整 URL:cite[3]:cite[9]
|
uses: https://gitea.com/actions/checkout@v4 # 使用完整 URL:cite[3]:cite[9]
|
||||||
with:
|
with:
|
||||||
fetch-depth: 1
|
fetch-depth: 1
|
||||||
|
|
||||||
# 2. 设置 Java 环境 - 使用 Gitea.com 的镜像
|
# 2. 设置 Java 环境 - 使用 Gitea.com 的镜像
|
||||||
- name: 设置 JDK 17
|
- name: 设置 JDK 17
|
||||||
uses: https://gitea.com/actions/setup-java # 使用完整 URL:cite[3]:cite[9]
|
uses: https://gitea.com/actions/setup-java@v4 # 使用完整 URL:cite[3]:cite[9]
|
||||||
with:
|
with:
|
||||||
java-version: '17'
|
java-version: '17'
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
|
|
||||||
# 3. 设置 Node.js 环境 - 使用 Gitea.com 的镜像
|
# 3. 设置 Node.js 环境 - 使用 Gitea.com 的镜像
|
||||||
- name: 设置 Node.js 环境
|
- name: 设置 Node.js 环境
|
||||||
uses: https://gitea.com/actions/setup-node # 使用完整 URL:cite[3]:cite[9]
|
uses: https://gitea.com/actions/setup-node@v4 # 使用完整 URL:cite[3]:cite[9]
|
||||||
with:
|
with:
|
||||||
node-version: '20'
|
node-version: '20'
|
||||||
cache: 'npm'
|
cache: 'npm'
|
||||||
|
|
||||||
# 4. 缓存 Maven 依赖项 - 使用 Gitea.com 的镜像
|
# 4. 缓存 Maven 依赖项 - 使用 Gitea.com 的镜像
|
||||||
- name: 缓存 Maven 依赖
|
- name: 缓存 Maven 依赖
|
||||||
uses: https://gitea.com/actions/cache # 使用完整 URL:cite[3]:cite[9]
|
uses: https://gitea.com/actions/cache@v3 # 使用完整 URL:cite[3]:cite[9]
|
||||||
with:
|
with:
|
||||||
path: ~/.m2/repository
|
path: ~/.m2/repository
|
||||||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
|
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
|
||||||
|
Reference in New Issue
Block a user