mirror of
https://github.com/actions/setup-java.git
synced 2026-07-31 14:41:36 +08:00
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
64 lines
1.6 KiB
YAML
64 lines
1.6 KiB
YAML
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
|