Update actions/setup-java action to v4.6.0 #1444
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: Model Forge | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
cancel-previous: | |
name: Cancel Previous | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cancel Previous Build | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ github.token }} | |
test: | |
runs-on: ubuntu-latest | |
needs: cancel-previous | |
strategy: | |
matrix: | |
java: [ '11','17' ] | |
name: Test with Java ${{ matrix.java }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up JDK | |
uses: actions/[email protected] | |
with: | |
distribution: 'temurin' | |
java-version: ${{ matrix.java }} | |
cache: 'gradle' | |
- name: Lint | |
run: make lint | |
- name: Test | |
run: make test | |
report: | |
name: "Report" | |
runs-on: ubuntu-latest | |
needs: cancel-previous | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: "Generate Coverage Report" | |
run: make coverage | |
- name: "Upload Coverage Report" | |
uses: codecov/[email protected] | |
with: | |
files: ./build/reports/kover/result.xml | |
token: ${{ secrets.CODECOV_TOKEN }} |