release 1.1.9 #58
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: Java CI with Maven | |
on: | |
push: | |
branches: [ "master" ] # 触发分支 | |
pull_request: | |
branches: [ "master" ] # 触发分支 | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '11' | |
distribution: 'temurin' # 选择一个Java发行版 | |
cache: maven # 缓存m2仓库以加速构建 | |
- name: Set Timezone | |
run: export TZ=Asia/Shanghai | |
- name: Build with Maven | |
run: mvn -B clean package --file pom.xml | |
- name: Run JUnit tests | |
run: mvn -B verify --file pom.xml | |
- name: Collect Test Results | |
run: | | |
mkdir -p ./test-results | |
for d in $(find . -type d -name "surefire-reports"); do | |
cp $d/*.xml ./test-results/ | |
done | |
shell: bash | |
- name: Archive test results | |
if: always() | |
uses: actions/upload-artifact@v3 | |
with: | |
name: test-results | |
path: spec/target/surefire-reports/ |