Update dependency org.jmailen.kotlinter to v5 #1438
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/cancel-workflow-action@0.12.1 | |
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/setup-java@v4.5.0 | |
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/codecov-action@v5.1.2 | |
with: | |
files: ./build/reports/kover/result.xml | |
token: ${{ secrets.CODECOV_TOKEN }} |