GradleVersion is comparable (#415) #14
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: Run Gradle on PRs | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
jobs: | |
ktlint: | |
timeout-minutes: 300 | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
version: [11] | |
vendor: [zulu] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: ${{ matrix.vendor }} | |
java-version: ${{ matrix.version }} | |
- name: Execute Gradle ktlint | |
run: ./gradlew ktlintCheck | |
build: | |
timeout-minutes: 300 | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
version: [11] | |
vendor: [zulu] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: ${{ matrix.vendor }} | |
java-version: ${{ matrix.version }} | |
- name: Execute Gradle build | |
run: ./gradlew assemble | |
pluginTest: | |
timeout-minutes: 300 | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
version: [11] | |
vendor: [zulu] | |
runs-on: ${{ matrix.os }} | |
services: | |
docker: | |
image: docker:20.10.7 | |
options: --privileged | |
ports: | |
- 5432:5432 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: ${{ matrix.vendor }} | |
java-version: ${{ matrix.version }} | |
- name: Execute Gradle build | |
run: ./gradlew collectUnitTest | |
publisherTest: | |
timeout-minutes: 300 | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
version: [11] | |
vendor: [zulu] | |
runs-on: ${{ matrix.os }} | |
services: | |
docker: | |
image: docker:20.10.7 | |
options: --privileged | |
ports: | |
- 5432:5432 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: ${{ matrix.vendor }} | |
java-version: ${{ matrix.version }} | |
- name: Execute Gradle build | |
run: ./gradlew collectUnitTestLibs | |
sample: | |
timeout-minutes: 300 | |
strategy: | |
matrix: | |
os: [ubuntu-latest,macos-latest,windows-latest] | |
version: [11] | |
vendor: [zulu] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: ${{ matrix.vendor }} | |
java-version: ${{ matrix.version }} | |
- name: Execute Gradle build | |
run: | | |
cd sample | |
./gradlew assemble | |
./gradlew assemble --configuration-cache | |
./gradlew assemble --configuration-cache |