Gradle #273
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: Gradle | |
on: | |
push: | |
pull_request: | |
schedule: | |
- cron: '0 0 * * 0' | |
jobs: | |
build: | |
strategy: | |
matrix: | |
java: [8, 11] | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
runs-on: ${{ matrix.os }} | |
env: | |
gradle_version: 6.8.3 # use ``current`` to install the current stable release | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK ${{ matrix.java }} | |
uses: actions/setup-java@v3 | |
with: | |
java-version: ${{ matrix.java }} | |
distribution: 'zulu' | |
cache: 'gradle' | |
java-package: 'jdk+fx' | |
- uses: gradle/gradle-build-action@v2 | |
with: | |
gradle-version: ${{ env.gradle_version }} | |
- name: Prepare minio | |
if: runner.os != 'Windows' | |
run: | | |
(cd ci && ./startminio.sh) | |
echo AWS_ACCESS_KEY_ID=stsadmin >> $GITHUB_ENV | |
echo AWS_SECRET_ACCESS_KEY=stsadmin-secret >> $GITHUB_ENV | |
- name: Gradle check | |
if: runner.os != 'Windows' | |
run: | | |
gradle check | |
- name: Gradle check | |
if: runner.os == 'Windows' | |
run: | | |
gradle check -PexcludeTests="**/s3*" | |
- name: Gradle shadowJar | |
run: gradle shadowJar |