chore(deps): update plugin tasktree to v4 #776
Workflow file for this run
This file contains 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/CD process | |
on: | |
push: | |
paths-ignore: | |
- '**/README.md' | |
workflow_dispatch: | |
pull_request: | |
jobs: | |
compile: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
cache: gradle | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Build with Gradle | |
run: ./gradlew assemble | |
jvm-version: | |
runs-on: ubuntu-latest | |
needs: | |
- compile | |
outputs: | |
versions: ${{ steps.versions.outputs.list }} | |
steps: | |
- run: | | |
ruby -e 'puts "list=#{((17..19).to_a + [11]).to_s}"' >> $GITHUB_OUTPUT | |
id: versions | |
test: | |
needs: | |
- jvm-version | |
strategy: | |
matrix: | |
java: ${{ fromJson(needs.jvm-version.outputs.versions) }} | |
os: [ windows, macos, ubuntu ] | |
runs-on: ${{ matrix.os }}-latest | |
steps: | |
- if: matrix.os == 'windows' | |
run: git config --system core.longpaths true | |
- uses: actions/checkout@v4 | |
- name: set up JDK ${{ matrix.java }} | |
uses: actions/setup-java@v4 | |
with: | |
java-version: ${{ matrix.java }} | |
distribution: 'temurin' | |
cache: gradle | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Build with Gradle | |
run: ./gradlew test | |
release: | |
runs-on: ubuntu-latest | |
needs: | |
- test | |
if: github.ref == 'refs/heads/main' | |
concurrency: | |
group: release | |
cancel-in-progress: false | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- name: set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
cache: gradle | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Release | |
env: | |
GITHUB_TOKEN: ${{ secrets.DEPLOYMENT_TOKEN}} | |
GRADLE_PUBLISH_KEY: ${{ secrets.GRADLE_PUBLISH_KEY }} | |
GRADLE_PUBLISH_SECRET: ${{ secrets.GRADLE_PUBLISH_SECRET }} | |
SIGNING_KEY: ${{ secrets.SIGNING_KEY }} | |
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }} | |
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} | |
run: | | |
npm install | |
npx semantic-release | |
success: | |
runs-on: ubuntu-latest | |
needs: | |
- compile | |
- release | |
if: >- | |
always() && ( | |
contains(join(needs.*.result, ','), 'failure') | |
|| !contains(join(needs.*.result, ','), 'cancelled') | |
) | |
steps: | |
- name: Verify that the workflow executed and there were no failures | |
run: ${{ !contains(join(needs.*.result, ','), 'failure') }} | |