chore(deps): update gradle to v9 #4406
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: CI | |
| on: | |
| push: | |
| paths-ignore: | |
| - 'CHANGELOG.md' | |
| - '.gitignore' | |
| pull_request: | |
| branches: | |
| - master | |
| workflow_dispatch: | |
| jobs: | |
| # Runs all tests | |
| build: | |
| name: Test | |
| strategy: | |
| matrix: | |
| os: [windows, macos, ubuntu] | |
| runs-on: ${{ matrix.os }}-latest | |
| timeout-minutes: 120 | |
| concurrency: | |
| group: ${{ github.workflow }}-build-${{ matrix.os }}-${{ github.event.number || github.ref }} | |
| cancel-in-progress: true | |
| steps: | |
| - name: Checkout | |
| uses: danysk/[email protected] | |
| - uses: DanySK/[email protected] | |
| with: | |
| build_command: 'true' | |
| should-run-codecov: ${{ contains('Linux', runner.os) }} | |
| test-deploy: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 120 | |
| concurrency: | |
| group: ${{ github.workflow }}-test-deploy-${{ github.event.number || github.ref }} | |
| cancel-in-progress: true | |
| steps: | |
| - name: Checkout | |
| uses: danysk/[email protected] | |
| - uses: DanySK/[email protected] | |
| with: | |
| build-command: true | |
| check-command: | | |
| ./gradlew tasks | grep releaseStagingRepositoryOnMavenCentral | |
| ./gradlew tasks | grep closeStagingRepositoryOnMavenCentral | |
| should-run-codecov: false | |
| should-deploy: false | |
| should-validate-wrapper: false | |
| - uses: DanySK/[email protected] | |
| if: contains(github.repository, 'Kotlin2PlantUML') && contains('push workflow_dispatch', github.event_name) | |
| with: | |
| build-command: true | |
| check-command: true | |
| deploy-command: ./gradlew uploadKotlin close || ./gradlew uploadKotlin close || ./gradlew uploadKotlin close | |
| java-version: 11 | |
| should-run-codecov: false | |
| should-deploy: true | |
| should-validate-wrapper: false | |
| maven-central-username: ${{ secrets.MAVEN_CENTRAL_USERNAME }} | |
| maven-central-password: ${{ secrets.MAVEN_CENTRAL_PASSWORD }} | |
| signing-key: ${{ secrets.SIGNING_KEY }} | |
| signing-password: ${{ secrets.SIGNING_PASSWORD }} | |
| release: | |
| concurrency: | |
| # Only one release job at a time. Strictly sequential. | |
| group: release | |
| needs: | |
| - build | |
| - test-deploy | |
| runs-on: ubuntu-latest | |
| if: >- | |
| contains('push workflow_dispatch', github.event_name) | |
| && contains(github.repository, 'Kelvindev15/Kotlin2PlantUML') | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 | |
| with: | |
| submodules: recursive | |
| - uses: actions/[email protected] | |
| with: | |
| node-version: '24.11' | |
| - uses: DanySK/[email protected] | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | |
| with: | |
| java-version: 11 | |
| build-command: true | |
| check-command: true | |
| deploy-command: | | |
| npm install | |
| npx semantic-release | |
| should-run-codecov: false | |
| should-deploy: true | |
| should-validate-wrapper: false | |
| github-token: ${{ secrets.GH_TOKEN }} | |
| maven-central-username: ${{ secrets.MAVEN_CENTRAL_USERNAME }} | |
| maven-central-password: ${{ secrets.MAVEN_CENTRAL_PASSWORD }} | |
| signing-key: ${{ secrets.SIGNING_KEY }} | |
| signing-password: ${{ secrets.SIGNING_PASSWORD }} | |
| success: | |
| runs-on: ubuntu-24.04 | |
| needs: | |
| - build | |
| - release | |
| - test-deploy | |
| if: >- | |
| always() && ( | |
| contains(join(needs.*.result, ','), 'failure') | |
| || !contains(join(needs.*.result, ','), 'cancelled') | |
| ) | |
| steps: | |
| - name: Verify that there were no failures | |
| run: ${{ !contains(join(needs.*.result, ','), 'failure') }} |