Merge pull request #397 from freefair/dependabot/gradle/3.2.x/io.free… #1105
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
# This workflow will build a Java project with Gradle | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle | |
name: Java CI with Gradle | |
on: | |
- push | |
- pull_request | |
jobs: | |
build: | |
name: build | |
runs-on: ubuntu-latest | |
env: | |
ORG_GRADLE_PROJECT_freefairBuildCachePassword: ${{ secrets.BUILD_CACHE_PASSWORD }} | |
strategy: | |
fail-fast: false | |
matrix: | |
java: [ 17 ] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK ${{ matrix.java }} | |
uses: actions/setup-java@v4 | |
with: | |
java-version: ${{ matrix.java }} | |
distribution: 'temurin' | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@v3 | |
- run: ./gradlew -V assemble -s | |
- run: ./gradlew -V check -s | |
- name: Upload Coverage Reports | |
run: | | |
./gradlew jacocoTestReport | |
bash <(curl -s https://codecov.io/bash) |