Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 28 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

name: CI

on:
Expand All @@ -10,9 +11,29 @@ permissions:
contents: read

jobs:
test:
check:
# Each matrix entry becomes its own job, and its own line
# in the PR's checks list (e.g. "CI / Checkstyle").
name: ${{ matrix.name }}
runs-on: ubuntu-latest

strategy:
fail-fast: false # let every check finish even if one fails
matrix:
include:
- id: spotless
name: Formatting (Spotless)
tasks: spotlessCheck
- id: tests
name: Tests and coverage
tasks: test jacocoTestCoverageVerification
- id: checkstyle
name: Checkstyle
tasks: checkstyleMain checkstyleTest
- id: pmd
name: PMD
tasks: pmdMain pmdTest

steps:
- name: Check out code
uses: actions/checkout@v4
Expand All @@ -26,13 +47,13 @@ jobs:
- name: Set up Gradle (with caching)
uses: gradle/actions/setup-gradle@v4

- name: Run checks
run: ./gradlew check --no-daemon
- name: Run ${{ matrix.name }}
run: ./gradlew ${{ matrix.tasks }}

- name: Upload test reports
- name: Upload reports
if: failure()
uses: actions/upload-artifact@v4
with:
name: test-reports
path: '**/build/reports/tests/'
retention-days: 7
name: reports-${{ matrix.id }}
path: '**/build/reports/'
retention-days: 7
Loading