Bump gradle/gradle-build-action from 2 to 3 #161
Workflow file for this run
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: build | |
on: | |
push: | |
branches: | |
- develop | |
- master | |
pull_request: | |
branches: | |
- develop | |
- master | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
java: [19] | |
os: ['ubuntu-latest'] | |
runs-on: ${{ matrix.os }} | |
name: Build on ${{ matrix.os }} on Java ${{ matrix.java }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: gradle/wrapper-validation-action@v1 | |
- name: Set up JDK ${{ matrix.java }} | |
uses: actions/setup-java@v4 | |
with: | |
distribution: temurin | |
java-version: ${{ matrix.java }} | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@v3 | |
- name: Build with Gradle | |
run: | | |
./gradlew --no-daemon -s :build | |
- name: Upload coverage to Codecov | |
if: ${{ matrix.java == '19' && matrix.os == 'ubuntu-latest' }} | |
uses: codecov/[email protected] | |
- name: Save reports | |
uses: actions/upload-artifact@v4 | |
if: ${{ failure() }} | |
with: | |
name: reports-${{ matrix.os }}-${{ matrix.java }} | |
path: build/reports/ |