Update org.junit.jupiter to v5.11.3 #192
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: Java CI with Gradle | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
if: contains(github.event.head_commit.message, '[skip ci]') == false | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: 21 | |
- name: Grant execute permission for compile-java-test/gradlew | |
working-directory: ./compile-java-test | |
run: chmod +x gradlew | |
- name: Grant execute permission for compile-kotlin-test/gradlew | |
working-directory: ./compile-kotlin-test | |
run: chmod +x gradlew | |
- name: Grant execute permission for compile-mix-test/gradlew | |
working-directory: ./compile-mix-test | |
run: chmod +x gradlew | |
- name: Build plugin | |
run: ./gradlew build | |
- name: Test plugin against Java | |
working-directory: ./compile-java-test | |
run: ./gradlew build | |
- name: Test plugin against Kotlin | |
working-directory: ./compile-kotlin-test | |
run: ./gradlew build | |
- name: Test plugin against a mix of Java and Kotlin | |
working-directory: ./compile-mix-test | |
run: ./gradlew build | |
- name: Set version | |
id: set-version | |
run: ./gradlew properties | grep "^version:" | awk '{print $2}' | { read v; echo "::set-output name=version::$v"; } | |
- name: Print version | |
run: echo ${{ steps.set-version.outputs.version }} | |
- name: Publish plugin | |
if: github.event_name == 'push' && endsWith(steps.set-version.outputs.version, 'SNAPSHOT') == false | |
run: ./gradlew publishPlugins -Pgradle.publish.key=${{ secrets.GRADLE_PUBLISH_KEY }} -Pgradle.publish.secret=${{ secrets.GRADLE_PUBLISH_SECRET }} |