Merge pull request #470 from yuzawa-san/dependabot/gradle/com.google.… #1045
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: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
# LTS versions + latest | |
java: [ '17', '20' ] | |
name: Java ${{ matrix.java }} build | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: gradle/wrapper-validation-action@v1 | |
- name: Set up JDK ${{ matrix.java }} | |
uses: actions/setup-java@v3 | |
with: | |
distribution: temurin | |
java-version: ${{ matrix.java }} | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@v2 | |
- name: Build with Gradle | |
run: | | |
./gradlew --no-daemon -s build | |
- name: Upload coverage to Codecov | |
uses: codecov/[email protected] | |
if: ${{ matrix.java == '17' }} | |
- name: Save reports | |
uses: actions/upload-artifact@v3 | |
if: ${{ failure() }} | |
with: | |
name: reports-${{ matrix.java }} | |
path: build/reports/ |