prbblrypier has launched CI process on 134/merge #136
Workflow file for this run
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: Continuous Integration process | |
| run-name: ${{ github.actor }} has launched CI process on ${{ github.ref_name }} | |
| on: | |
| push: | |
| branches: | |
| - "main" | |
| - "develop" | |
| - "feature/corese-next" | |
| pull_request: | |
| branches: | |
| - "main" | |
| - "develop" | |
| - "feature/corese-next" | |
| permissions: | |
| contents: read | |
| issues: read | |
| checks: write | |
| pull-requests: write | |
| jobs: | |
| Continuous-Integration-Actions: | |
| runs-on: self-hosted | |
| env: | |
| PACKAGE_TOKEN: ${{ secrets.JLS_TOKEN }} | |
| steps: | |
| - name: Checkout of head | |
| id: ci-sources-checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up JDK 21 | |
| id: ci-java-setup | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: 21 | |
| distribution: 'temurin' | |
| - name: Gradle build | |
| id: ci-gradle-build | |
| run: ./gradlew clean assemble | |
| - name: Gradle tests | |
| run: ./gradlew test | |
| - name: Run Coverage | |
| run: ./gradlew jacocoTestReport | |
| - name: Add coverage to PR | |
| id: jacoco | |
| uses: madrapps/jacoco-report@v1.7.0 | |
| with: | |
| paths: | | |
| **/build/reports/jacoco/test/jacocoTestReport.xml | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| min-coverage-overall: 40 | |
| min-coverage-changed-files: 60 | |
| update-comment: true | |
| - name: Get the Coverage info | |
| run: | | |
| echo "Total coverage ${{ steps.jacoco.outputs.coverage-overall }}" | |
| echo "Changed Files coverage ${{ steps.jacoco.outputs.coverage-changed-files }}" | |
| - name: Publish Test Results | |
| uses: EnricoMi/publish-unit-test-result-action/linux@v2 | |
| if: always() | |
| with: | |
| files: | | |
| build/test-results/**/*.xml | |
| - name: Get test artifacts | |
| if: ${{ failure() }} | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: Package | |
| path: | | |
| **/build/reports/ | |
| **/build/test-results/ | |
| - name: Final Step | |
| id: ci-final-step | |
| run: | | |
| echo "This job's status is ${{ job.status }}." | |
| echo "Created jar file(s):" | |
| find ./build -name '*.jar' |