# Pull-request stage. Everything here blocks a merge, and the branch protection requires one check: # `done`, which is the whole stage. Which leaves, lanes and checks the stage means is decided by the Gradle task `prCheck` # (build.gradle), not here; `verifyStrictLaneStages` fails when this job stops running it as one # line (docs/work/reference/gates.md). # # The adapter container lanes are not here: they run in main.yml on every push to main (owner # decision 2026-11-07). A change that touches an adapter runs that leaf's strict lanes on the # desktop before it merges (docs/work/reference/gates.md 2). name: pr on: pull_request: permissions: contents: read # One group per pull request: the ref of a pull_request run is refs/pull//head. A push to the # pull request cancels the run of the head it replaces, queued or running, so the one runner spends # its slot on the head that can merge. concurrency: group: pr-${{ github.ref }} cancel-in-progress: true env: TESTCONTAINERS_REUSE_ENABLE: "false" jobs: # The whole stage is this one job, and it is the one required check (`pr / done`). Separate # gradle, scan and `done` jobs made `done` wait for the runner a second time: a job that `needs` # others joins the runner's queue only when they finish, behind everything queued meanwhile, and # on 2026-11-08 that put a finished pull request's `done` three hours behind a manual main run. # One job also pays the checkout, JDK and Gradle start once instead of twice. # # The scan runs last. A Gradle failure therefore hides the scan's result until it is fixed; the # main stage and the nightly run scan the same tree again. done: runs-on: ubuntu-latest timeout-minutes: 75 steps: - uses: https://github.com/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # actions/checkout@v4.2.2 - uses: ./.gitea/actions/setup-java-gradle - run: ./gradlew :prCheck # Plans every stage (--dry-run: nothing executes), so it cannot be a dependency of prCheck. - run: ./gradlew :verifyStrictLaneStages --dry-run - uses: ./.gitea/actions/trivy-db-cache # Known High and Critical vulnerabilities and CISA KEV matches in the dependency tree. - run: bash scripts/ci/trivy-scan.sh filesystem