Skip to content

Merge pull request #39 from aliyun/feature/release-v1.1.7-2-az-core-1 #38

Merge pull request #39 from aliyun/feature/release-v1.1.7-2-az-core-1

Merge pull request #39 from aliyun/feature/release-v1.1.7-2-az-core-1 #38

Workflow file for this run

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: Build with Maven
run: mvn -B clean package --file pom.xml
- name: Run JUnit tests
run: mvn -B verify --file pom.xml
- name: Archive test results
if: always()
uses: actions/upload-artifact@v3
with:
name: test-results
path: target/surefire-reports/