[maven-release-plugin] prepare release unleash-client-java-10.0.0-beta.2 #143
This file contains hidden or 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: Build | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| version: [8, 11, 17] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Java | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: ${{ matrix.version }} | |
| cache: "maven" | |
| distribution: "temurin" | |
| - name: Build, test, coverage | |
| run: ./mvnw clean test jacoco:report | |
| - name: Coveralls | |
| uses: coverallsapp/github-action@v2 | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| allow-empty: true | |
| base-path: src/main/java | |
| parallel: true | |
| flag-name: run-jvm-${{ join(matrix.*, '-') }} | |
| - name: Notify Slack of pipeline completion | |
| uses: 8398a7/action-slack@v2 | |
| with: | |
| status: ${{ job.status }} | |
| author_name: Github Action | |
| text: Build on Java ${{ matrix.version }} | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| SLACK_WEBHOOK_URL: ${{ secrets.slack_webhook }} | |
| if: always() | |
| finish: | |
| needs: build | |
| if: ${{ always() }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Coveralls Finished | |
| uses: coverallsapp/github-action@v2 | |
| with: | |
| parallel-finished: true | |
| carryforward: run-jvm-8,run-jvm-11,run-jvm-17 | |