Skip to content

Fix: Release process #17

Fix: Release process

Fix: Release process #17

Workflow file for this run

name: Java CI/CD with Maven
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
name: Unit Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: 'maven' # 自动缓存依赖
- name: Run Unit Tests
run: mvn -B test
- name: Upload Test Report
if: always() # 即使测试失败也上传
uses: actions/upload-artifact@v4
with:
name: test-results
path: target/surefire-reports/