Bump mikepenz/action-junit-report from 4 to 5 #91
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: CI | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
code-style: | |
name: Code style | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ inputs.ref }} | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@v3 | |
- name: Check code style | |
run: ./gradlew ktlintCheck | |
tests: | |
name: Tests | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ inputs.ref }} | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@v3 | |
- name: Run tests | |
run: ./gradlew allTests | |
- name: Display unit test results | |
uses: mikepenz/action-junit-report@v5 | |
if: always() | |
with: | |
check_name: 'Tests results' | |
report_paths: '**/build/test-results/**/TEST-*.xml' |