代码优化 (#121) #557
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [ push, pull_request ] | |
jobs: | |
build-and-test: | |
name: 构建和测试 | |
runs-on: ubuntu-latest | |
steps: | |
- name: 签出代码 | |
uses: actions/checkout@v4 | |
- name: 启动默认的 MySQL | |
run: sudo systemctl start mysql.service | |
- name: 安装 JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: temurin | |
java-version: 23 | |
cache: maven | |
- name: 使用 Maven 进行构建和测试 | |
run: mvn package --batch-mode | |
- name: 上传 构建和测试 生成的文件 | |
uses: actions/upload-artifact@v4 | |
with: | |
name: scx-artifact | |
path: ./*/target/ |