name: CI on: push: branches: - main paths: - 'src/**' - 'pom.xml' - '.github/workflows/ci.yml' pull_request: paths: - 'src/**' - 'pom.xml' - '.github/workflows/ci.yml' permissions: contents: read concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true jobs: test: name: Build and Test runs-on: ubuntu-latest timeout-minutes: 20 steps: - uses: actions/checkout@v7.0.0 - uses: actions/setup-java@v5 with: java-version: '25' distribution: 'temurin' cache: maven - name: Run tests run: mvn test -B