From bcd3ba3d321929a5a2532eec5a79b9eca32027e6 Mon Sep 17 00:00:00 2001 From: Bruno Borges Date: Wed, 29 Jul 2026 10:17:23 -0400 Subject: [PATCH] Reduce change-time Java E2E matrix (#1170) Run a representative smoke matrix on pull requests and main while reserving the exhaustive compatibility matrix for scheduled, manual, and release-branch runs. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 235c81b4-58ae-494e-9907-e19c841c6a53 --- .github/workflows/e2e-smoke.yml | 63 ++++++++++++++++++++++++++++++ .github/workflows/e2e-versions.yml | 4 -- 2 files changed, 63 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/e2e-smoke.yml diff --git a/.github/workflows/e2e-smoke.yml b/.github/workflows/e2e-smoke.yml new file mode 100644 index 00000000..65314acb --- /dev/null +++ b/.github/workflows/e2e-smoke.yml @@ -0,0 +1,63 @@ +name: Validate Java e2e smoke + +on: + push: + branches: + - main + paths-ignore: + - '**.md' + pull_request: + paths-ignore: + - '**.md' + +permissions: + contents: read + +jobs: + setup-java: + name: ${{ matrix.distribution }} ${{ matrix.version }} (${{ matrix.java-package }}) - ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + include: + - os: macos-latest + distribution: temurin + version: '11' + java-package: jdk + - os: windows-latest + distribution: temurin + version: '17' + java-package: jdk + - os: ubuntu-latest + distribution: temurin + version: '21' + java-package: jdk + - os: ubuntu-latest + distribution: zulu + version: '17' + java-package: jre + - os: ubuntu-latest + distribution: liberica + version: '21' + java-package: jdk+fx + steps: + - name: Checkout + uses: actions/checkout@v7 + with: + persist-credentials: false + - name: setup-java + uses: ./ + id: setup-java + with: + java-version: ${{ matrix.version }} + java-package: ${{ matrix.java-package }} + distribution: ${{ matrix.distribution }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Verify Java + env: + JAVA_VERSION: ${{ matrix.version }} + JAVA_PATH: ${{ steps.setup-java.outputs.path }} + run: bash __tests__/verify-java.sh "$JAVA_VERSION" "$JAVA_PATH" + shell: bash diff --git a/.github/workflows/e2e-versions.yml b/.github/workflows/e2e-versions.yml index 47f93d9f..197a13c1 100644 --- a/.github/workflows/e2e-versions.yml +++ b/.github/workflows/e2e-versions.yml @@ -3,13 +3,9 @@ name: Validate Java e2e on: push: branches: - - main - releases/* paths-ignore: - '**.md' - pull_request: - paths-ignore: - - '**.md' schedule: - cron: '0 */12 * * *' workflow_dispatch: