Skip to content

Update actions/setup-java action to v4.6.0 (#414) #1446

Update actions/setup-java action to v4.6.0 (#414)

Update actions/setup-java action to v4.6.0 (#414) #1446

Workflow file for this run

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 }}