: white_check_mark: 启用离线测试门禁并修复解析与测试配置问题
This commit is contained in:
30
.github/workflows/maven-test.yml
vendored
Normal file
30
.github/workflows/maven-test.yml
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
name: Maven Tests
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
branches:
|
||||
- develop
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
concurrency:
|
||||
group: maven-test-${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 30
|
||||
steps:
|
||||
- name: Checkout Code
|
||||
uses: actions/checkout@v5
|
||||
- name: Set up Java
|
||||
uses: actions/setup-java@v5
|
||||
with:
|
||||
java-version: '17'
|
||||
distribution: 'temurin'
|
||||
cache: maven
|
||||
- name: Run Maven tests
|
||||
run: mvn clean test -Dmaven.test.skip=false --no-transfer-progress
|
||||
Reference in New Issue
Block a user