Update dependency org.junit:junit-bom to v5.11.0 (#223) #650
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
on: | |
push: | |
paths-ignore: | |
- docs/** | |
branches: | |
- main | |
- ver/** | |
pull_request: | |
paths-ignore: | |
- docs/** | |
branches: | |
- main | |
- ver/** | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Java | |
uses: actions/setup-java@v4 | |
with: | |
java-version: 17 | |
distribution: temurin | |
cache: gradle | |
- name: Validate Gradle wrapper | |
uses: gradle/wrapper-validation-action@v3 | |
- name: Setup Gradle | |
uses: gradle/[email protected] | |
- name: Change wrapper permissions | |
run: chmod +x ./gradlew | |
- name: Build | |
run: ./gradlew build | |
publish: | |
if: github.event_name == 'push' | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Java | |
uses: actions/setup-java@v4 | |
with: | |
java-version: 17 | |
distribution: temurin | |
cache: gradle | |
- name: Validate Gradle wrapper | |
uses: gradle/wrapper-validation-action@v3 | |
- name: Setup Gradle | |
uses: gradle/[email protected] | |
- name: Change wrapper permissions | |
run: chmod +x ./gradlew | |
- name: Publish to Maven | |
run: ./gradlew publish | |
env: | |
ORG_GRADLE_PROJECT_sparky983Username: ${{ secrets.MAVEN_NAME }} | |
ORG_GRADLE_PROJECT_sparky983Password: ${{ secrets.MAVEN_TOKEN }} |