diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 2eaaecfd30..df20084324 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -1,32 +1,31 @@ -# This workflow will build a Java project with Maven -# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven - -name: Java CI with Maven - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] defaults: run: shell: bash - jobs: build: - runs-on: ubuntu-latest - strategy: - matrix: - java: [ 8, 11 ] name: Java ${{ matrix.Java }} + runs-on: self-hosted steps: - - uses: actions/checkout@v2 - - name: Setup java + - continue-on-error: true + uses: actions/checkout@v2 + - continue-on-error: true + name: Setup java uses: actions/setup-java@v2 with: - distribution: 'zulu' + distribution: zulu java-version: ${{ matrix.java }} - - name: Test with Maven + - continue-on-error: true + name: Test with Maven run: mvn test -B -f ./aliyun-java-sdk-core/pom.xml - - name: Post test coverage + - continue-on-error: true + name: Post test coverage run: bash <(curl -s https://codecov.io/bash) -cF java + strategy: + matrix: + java: + - 8 + - 11 +name: Java CI with Maven +on: + repository_dispatch: + types: trigger-ga___maven.yml