chore: align package.json version with plugin baseline 0.0.1 #8
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: JaCoCo Exclusion Report Plugin - Build | |
| on: | |
| push: | |
| branches-ignore: | |
| - main | |
| - maintenance | |
| paths: | |
| - 'sedr_utils/jacoco-exclusion-report/**' | |
| - '.github/workflows/**' | |
| - '.github/actions/**' | |
| jobs: | |
| Calculate-Version: | |
| uses: ./.github/workflows/semantic-version-calculate.yml | |
| with: | |
| fail_on_empty_version: false | |
| fail_on_existing_tag: false | |
| project_dir: sedr_utils/jacoco-exclusion-report | |
| secrets: | |
| sem_rel_token_token: ${{ secrets.SEMANTIC_RELEASE_TOKEN }} | |
| Determine-Release-Type: | |
| needs: Calculate-Version | |
| uses: ./.github/workflows/determine-release-type.yml | |
| Build-Plugin: | |
| name: Build JaCoCo Exclusion Report Plugin | |
| needs: Calculate-Version | |
| permissions: | |
| contents: write | |
| issues: write | |
| pull-requests: write | |
| runs-on: ubuntu-latest | |
| env: | |
| GRADLE_PROPERTIES_FILE: ./sedr_utils/jacoco-exclusion-report/gradle.properties | |
| GRADLE_VERSION_REGEX: version\s*=\s*[0-9]\\+\.[0-9]\\+\.[0-9]\\+[a-zA-Z0-9.-]* | |
| VERSION: ${{ needs.Calculate-Version.outputs.next_version }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| persist-credentials: false | |
| - name: Setup Java | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: 'temurin' | |
| java-version: 21 | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v5 | |
| - name: Update version in Gradle property file | |
| run: | | |
| echo "VERSION=${{ env.VERSION }}" | |
| echo ===== Before - ${{ env.GRADLE_PROPERTIES_FILE }} ===== | |
| cat ${{ env.GRADLE_PROPERTIES_FILE }} | |
| sed -i "s/${{ env.GRADLE_VERSION_REGEX }}/version = ${{ env.VERSION }}/g" ${{ env.GRADLE_PROPERTIES_FILE }} | |
| echo ===== After - ${{ env.GRADLE_PROPERTIES_FILE }} ===== | |
| cat ${{ env.GRADLE_PROPERTIES_FILE }} | |
| - name: Build and test JaCoCo Exclusion Report Plugin | |
| run: | | |
| cd sedr_utils/jacoco-exclusion-report | |
| chmod +x ./gradlew | |
| ./gradlew build | |
| env: | |
| GITHUB_ACTOR: ${{ github.actor }} | |
| GITHUB_TOKEN: ${{ secrets.SEDR_AUTOMATION_TOKEN }} | |
| - name: Validate Plugin | |
| run: | | |
| cd sedr_utils/jacoco-exclusion-report | |
| ./gradlew validatePlugins | |
| env: | |
| GITHUB_ACTOR: ${{ github.actor }} | |
| GITHUB_TOKEN: ${{ secrets.SEDR_AUTOMATION_TOKEN }} | |
| Workflow-Summary: | |
| name: Workflow Summary | |
| needs: [Build-Plugin, Determine-Release-Type] | |
| if: always() | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Output build completion | |
| run: | | |
| echo "JaCoCo Exclusion Report Plugin ${{ needs.Determine-Release-Type.outputs.release_type }} build workflow completed" | |
| echo "::notice title=Build Complete::JaCoCo Exclusion Report Plugin ${{ needs.Determine-Release-Type.outputs.release_type }} build workflow completed" |