setup-java/.github
Bruno Borges 0040423ea0 Extract repeated directory-check assertions into check-dir.sh helper
The e2e-cache.yml workflow repeated the same inline shell block many times
to assert a cache directory exists (and list it), plus inverse checks that a
directory does NOT exist (the gradle2/maven2/sbt2 cache-miss jobs).

Add `__tests__/check-dir.sh` (POSIX sh, executable) with a
`check-dir.sh <dir> [present|absent]` interface and replace every inline
check with a call to it, passing already-expanded $HOME paths to avoid
tilde-expansion pitfalls. The sbt jobs override working-directory, so they
call the helper via $GITHUB_WORKSPACE. Per-OS Coursier conditionals and all
build steps are left unchanged.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-07-15 10:49:59 -04:00
..
ISSUE_TEMPLATE Templates for new Java distributions (#429) 2026-06-22 17:11:20 -04:00
PULL_REQUEST_TEMPLATE Templates for new Java distributions (#429) 2026-06-22 17:11:20 -04:00
workflows Extract repeated directory-check assertions into check-dir.sh helper 2026-07-15 10:49:59 -04:00
CODEOWNERS Update CODEOWNERS 2022-12-26 09:43:06 +01:00
dependabot.yml Create dependabot.yml (#722) 2025-01-21 16:15:18 -06:00
java.json Add Maven compiler problem matcher for javac diagnostics (#1086) 2026-07-08 14:28:02 -04:00
pull_request_template.md chore: enforce pre-PR validation (aggregate scripts, git hooks, PR checklist) (#1061) 2026-06-26 08:07:16 +01:00
zizmor.yml chore: Harden workflows: least-privilege permissions + zizmor integration (#1039) 2026-06-23 18:10:17 +01:00