mirror of
https://github.com/actions/setup-java.git
synced 2026-08-25 16:00:54 +00:00
Some checks failed
Basic validation / Basic validation (push) Failing after 1s
Check dist/ / Check dist/ (push) Failing after 1s
Validate cache / gradle-restore (ubuntu-latest) (push) Blocked by required conditions
Validate cache / gradle-restore (windows-latest) (push) Blocked by required conditions
Validate cache / maven-save (macos-15-intel) (push) Waiting to run
Validate cache / maven-restore (ubuntu-latest) (push) Blocked by required conditions
Validate cache / maven-restore (windows-latest) (push) Blocked by required conditions
Validate cache / sbt-save (macos-15-intel) (push) Waiting to run
Validate cache / gradle1-save (windows-latest) (push) Waiting to run
Validate cache / gradle1-restore (macos-latest) (push) Blocked by required conditions
Validate cache / gradle1-restore (ubuntu-latest) (push) Blocked by required conditions
Validate cache / gradle1-restore (windows-latest) (push) Blocked by required conditions
Validate cache / gradle2-restore (macos-latest) (push) Blocked by required conditions
Validate cache / gradle-save (macos-15-intel) (push) Waiting to run
Validate cache / gradle-save (windows-latest) (push) Waiting to run
Validate cache / gradle-restore (macos-15-intel) (push) Blocked by required conditions
Validate cache / maven-save (windows-latest) (push) Waiting to run
Validate cache / maven-restore (macos-15-intel) (push) Blocked by required conditions
Validate cache / sbt-save (windows-latest) (push) Waiting to run
Validate cache / sbt-restore (macos-15-intel) (push) Blocked by required conditions
Validate cache / sbt-restore (ubuntu-22.04) (push) Blocked by required conditions
Validate cache / sbt-restore (windows-latest) (push) Blocked by required conditions
Validate cache / gradle1-save (macos-latest) (push) Waiting to run
CodeQL analysis / CodeQL analysis (push) Failing after 1s
Validate cache / sbt2-restore (macos-15-intel) (push) Blocked by required conditions
Validate cache / sbt2-restore (ubuntu-22.04) (push) Blocked by required conditions
Validate cache / sbt2-restore (windows-latest) (push) Blocked by required conditions
Validate cache / gradle2-restore (ubuntu-latest) (push) Blocked by required conditions
Validate cache / gradle2-restore (windows-latest) (push) Blocked by required conditions
Validate cache / maven1-save (macos-15-intel) (push) Waiting to run
Validate cache / maven1-save (windows-latest) (push) Waiting to run
Validate cache / maven1-restore (macos-15-intel) (push) Blocked by required conditions
Validate cache / maven1-restore (ubuntu-latest) (push) Blocked by required conditions
Validate cache / maven1-restore (windows-latest) (push) Blocked by required conditions
Validate cache / maven2-restore (macos-15-intel) (push) Blocked by required conditions
Validate cache / maven2-restore (ubuntu-latest) (push) Blocked by required conditions
Validate cache / maven2-restore (windows-latest) (push) Blocked by required conditions
Validate cache / sbt1-save (macos-15-intel) (push) Waiting to run
Validate cache / sbt1-save (windows-latest) (push) Waiting to run
Validate cache / sbt1-restore (macos-15-intel) (push) Blocked by required conditions
Validate cache / sbt1-restore (ubuntu-22.04) (push) Blocked by required conditions
Validate cache / sbt1-restore (windows-latest) (push) Blocked by required conditions
Validate local file / Validate installation from local file Adopt (macos-latest) (push) Waiting to run
Validate cache / sbt1-save (ubuntu-22.04) (push) Failing after 7s
Validate local file / Validate installation from local file Adopt (windows-latest) (push) Waiting to run
Validate local file / Validate installation from local file Zulu (macos-latest) (push) Waiting to run
Validate local file / Validate installation from local file Zulu (windows-latest) (push) Waiting to run
Validate local file / Validate installation from local file Eclipse Temurin (macos-latest) (push) Waiting to run
Validate local file / Validate installation from local file Eclipse Temurin (windows-latest) (push) Waiting to run
Validate publishing functionality / Validate settings.xml (macos-latest) (push) Waiting to run
Validate publishing functionality / Validate settings.xml (windows-latest) (push) Waiting to run
Validate publishing functionality / settings.xml is overwritten if flag is true (macos-latest) (push) Waiting to run
Validate publishing functionality / settings.xml is overwritten if flag is true (windows-latest) (push) Waiting to run
Validate publishing functionality / settings.xml is not overwritten if flag is false (macos-latest) (push) Waiting to run
Validate publishing functionality / settings.xml is not overwritten if flag is false (windows-latest) (push) Waiting to run
Validate publishing functionality / settings.xml in custom location (macos-latest) (push) Waiting to run
Validate publishing functionality / settings.xml in custom location (windows-latest) (push) Waiting to run
Validate Java e2e smoke / ${{ matrix.distribution }} ${{ matrix.version }} (${{ matrix.java-package }}) - ${{ matrix.os }} (temurin, jdk, macos-latest, 11) (push) Waiting to run
Validate Java e2e smoke / ${{ matrix.distribution }} ${{ matrix.version }} (${{ matrix.java-package }}) - ${{ matrix.os }} (temurin, jdk, windows-latest, 17) (push) Waiting to run
Validate cache / gradle-save (ubuntu-latest) (push) Failing after 9s
Validate cache / maven-save (ubuntu-latest) (push) Failing after 6s
Validate cache / sbt-save (ubuntu-22.04) (push) Failing after 6s
Validate cache / gradle1-save (ubuntu-latest) (push) Failing after 7s
Validate cache / maven1-save (ubuntu-latest) (push) Failing after 6s
Validate publishing functionality / Validate settings.xml (ubuntu-latest) (push) Failing after 10s
Validate local file / Validate installation from local file Adopt (ubuntu-latest) (push) Failing after 6s
Validate local file / Validate installation from local file Zulu (ubuntu-latest) (push) Failing after 7s
Validate local file / Validate installation from local file Eclipse Temurin (ubuntu-latest) (push) Failing after 8s
Validate publishing functionality / settings.xml is overwritten if flag is true (ubuntu-latest) (push) Failing after 10s
Validate publishing functionality / settings.xml is not overwritten if flag is false (ubuntu-latest) (push) Failing after 57s
Validate publishing functionality / settings.xml in custom location (ubuntu-latest) (push) Failing after 34s
Validate Java e2e smoke / ${{ matrix.distribution }} ${{ matrix.version }} (${{ matrix.java-package }}) - ${{ matrix.os }} (liberica, jdk+fx, ubuntu-latest, 21) (push) Failing after 35s
Validate Java e2e smoke / ${{ matrix.distribution }} ${{ matrix.version }} (${{ matrix.java-package }}) - ${{ matrix.os }} (zulu, jre, ubuntu-latest, 17) (push) Failing after 39s
Licensed / Licensed (push) Failing after 0s
Validate Java e2e smoke / ${{ matrix.distribution }} ${{ matrix.version }} (${{ matrix.java-package }}) - ${{ matrix.os }} (temurin, jdk, ubuntu-latest, 21) (push) Failing after 36s
Security analysis with zizmor / Analyze workflows with zizmor (push) Failing after 39s
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: b3f6f152-8ac4-4c29-b04a-acac8e100777
429 lines
14 KiB
YAML
429 lines
14 KiB
YAML
name: Validate cache
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- releases/*
|
|
paths-ignore:
|
|
- '**.md'
|
|
pull_request:
|
|
paths-ignore:
|
|
- '**.md'
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
defaults:
|
|
run:
|
|
shell: bash
|
|
|
|
jobs:
|
|
gradle-save:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [macos-15-intel, windows-latest, ubuntu-latest]
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v7
|
|
with:
|
|
persist-credentials: false
|
|
- name: Run setup-java with the cache for gradle
|
|
uses: ./
|
|
id: setup-java
|
|
with:
|
|
distribution: 'adopt'
|
|
java-version: '17'
|
|
cache: gradle
|
|
- name: Create files to cache
|
|
# Need to avoid using Gradle daemon to stabilize the save process on Windows
|
|
# https://github.com/actions/cache/issues/454#issuecomment-840493935
|
|
run: |
|
|
gradle downloadDependencies --no-daemon -p __tests__/cache/gradle1
|
|
bash __tests__/check-dir.sh "$HOME/.gradle/caches"
|
|
gradle-restore:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [macos-15-intel, windows-latest, ubuntu-latest]
|
|
needs: gradle-save
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v7
|
|
with:
|
|
persist-credentials: false
|
|
- name: Run setup-java with the cache for gradle
|
|
uses: ./
|
|
id: setup-java
|
|
with:
|
|
distribution: 'adopt'
|
|
java-version: '11'
|
|
cache: gradle
|
|
cache-read-only: true
|
|
- name: Confirm that ~/.gradle/caches directory has been made
|
|
run: bash __tests__/check-dir.sh "$HOME/.gradle/caches"
|
|
maven-save:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [macos-15-intel, windows-latest, ubuntu-latest]
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v7
|
|
with:
|
|
persist-credentials: false
|
|
- name: Run setup-java with the cache for maven
|
|
uses: ./
|
|
id: setup-java
|
|
with:
|
|
distribution: 'adopt'
|
|
java-version: '11'
|
|
cache: maven
|
|
- name: Create files to cache
|
|
run: |
|
|
mvn verify -f __tests__/cache/maven/pom.xml
|
|
bash __tests__/check-dir.sh "$HOME/.m2/repository"
|
|
maven-restore:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [macos-15-intel, windows-latest, ubuntu-latest]
|
|
needs: maven-save
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v7
|
|
with:
|
|
persist-credentials: false
|
|
- name: Run setup-java with the cache for maven
|
|
uses: ./
|
|
id: setup-java
|
|
with:
|
|
distribution: 'adopt'
|
|
java-version: '11'
|
|
cache: maven
|
|
cache-read-only: true
|
|
- name: Confirm that ~/.m2/repository directory has been made
|
|
run: bash __tests__/check-dir.sh "$HOME/.m2/repository"
|
|
sbt-save:
|
|
runs-on: ${{ matrix.os }}
|
|
defaults:
|
|
run:
|
|
shell: bash
|
|
working-directory: __tests__/cache/sbt
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [macos-15-intel, windows-latest, ubuntu-22.04]
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v7
|
|
with:
|
|
persist-credentials: false
|
|
- name: Run setup-java with the cache for sbt
|
|
uses: ./
|
|
id: setup-java
|
|
with:
|
|
distribution: 'adopt'
|
|
java-version: '11'
|
|
cache: sbt
|
|
- name: Setup SBT
|
|
if: matrix.os == 'macos-15-intel'
|
|
run: |
|
|
echo ""Installing SBT...""
|
|
brew install sbt
|
|
- name: Create files to cache
|
|
run: sbt update
|
|
|
|
- name: Check files to cache on macos-latest
|
|
if: matrix.os == 'macos-15-intel'
|
|
run: bash "$GITHUB_WORKSPACE/__tests__/check-dir.sh" "$HOME/Library/Caches/Coursier"
|
|
- name: Check files to cache on windows-latest
|
|
if: matrix.os == 'windows-latest'
|
|
run: bash "$GITHUB_WORKSPACE/__tests__/check-dir.sh" "$HOME/AppData/Local/Coursier/Cache"
|
|
- name: Check files to cache on ubuntu-latest
|
|
if: matrix.os == 'ubuntu-22.04'
|
|
run: bash "$GITHUB_WORKSPACE/__tests__/check-dir.sh" "$HOME/.cache/coursier"
|
|
sbt-restore:
|
|
runs-on: ${{ matrix.os }}
|
|
defaults:
|
|
run:
|
|
shell: bash
|
|
working-directory: __tests__/cache/sbt
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [macos-15-intel, windows-latest, ubuntu-22.04]
|
|
needs: sbt-save
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v7
|
|
with:
|
|
persist-credentials: false
|
|
- name: Run setup-java with the cache for sbt
|
|
uses: ./
|
|
id: setup-java
|
|
with:
|
|
distribution: 'adopt'
|
|
java-version: '11'
|
|
cache: sbt
|
|
cache-read-only: true
|
|
|
|
- name: Confirm that ~/Library/Caches/Coursier directory has been made
|
|
if: matrix.os == 'macos-15-intel'
|
|
run: bash "$GITHUB_WORKSPACE/__tests__/check-dir.sh" "$HOME/Library/Caches/Coursier"
|
|
- name: Confirm that ~/AppData/Local/Coursier/Cache directory has been made
|
|
if: matrix.os == 'windows-latest'
|
|
run: bash "$GITHUB_WORKSPACE/__tests__/check-dir.sh" "$HOME/AppData/Local/Coursier/Cache"
|
|
- name: Confirm that ~/.cache/coursier directory has been made
|
|
if: matrix.os == 'ubuntu-22.04'
|
|
run: bash "$GITHUB_WORKSPACE/__tests__/check-dir.sh" "$HOME/.cache/coursier"
|
|
gradle1-save:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [macos-latest, windows-latest, ubuntu-latest]
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v7
|
|
with:
|
|
persist-credentials: false
|
|
- name: Run setup-java with the cache for gradle
|
|
uses: ./
|
|
id: setup-java
|
|
with:
|
|
distribution: 'adopt'
|
|
java-version: '17'
|
|
cache: gradle
|
|
cache-dependency-path: __tests__/cache/gradle1/*.gradle*
|
|
- name: Create files to cache
|
|
# Need to avoid using Gradle daemon to stabilize the save process on Windows
|
|
# https://github.com/actions/cache/issues/454#issuecomment-840493935
|
|
run: |
|
|
gradle downloadDependencies --no-daemon -p __tests__/cache/gradle1
|
|
bash __tests__/check-dir.sh "$HOME/.gradle/caches"
|
|
gradle1-restore:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [macos-latest, windows-latest, ubuntu-latest]
|
|
needs: gradle1-save
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v7
|
|
with:
|
|
persist-credentials: false
|
|
- name: Run setup-java with the cache for gradle
|
|
uses: ./
|
|
id: setup-java
|
|
with:
|
|
distribution: 'adopt'
|
|
java-version: '11'
|
|
cache: gradle
|
|
cache-dependency-path: __tests__/cache/gradle1/*.gradle*
|
|
- name: Confirm that ~/.gradle/caches directory has been made
|
|
run: bash __tests__/check-dir.sh "$HOME/.gradle/caches"
|
|
gradle2-restore:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [macos-latest, windows-latest, ubuntu-latest]
|
|
needs: gradle1-save
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v7
|
|
with:
|
|
persist-credentials: false
|
|
- name: Run setup-java with the cache for gradle
|
|
uses: ./
|
|
id: setup-java
|
|
with:
|
|
distribution: 'adopt'
|
|
java-version: '11'
|
|
cache: gradle
|
|
cache-dependency-path: __tests__/cache/gradle2/*.gradle*
|
|
- name: Confirm that ~/.gradle/caches directory has not been made
|
|
run: bash __tests__/check-dir.sh "$HOME/.gradle/caches" absent
|
|
maven1-save:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [macos-15-intel, windows-latest, ubuntu-latest]
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v7
|
|
with:
|
|
persist-credentials: false
|
|
- name: Run setup-java with the cache for maven
|
|
uses: ./
|
|
id: setup-java
|
|
with:
|
|
distribution: 'adopt'
|
|
java-version: '11'
|
|
cache: maven
|
|
cache-dependency-path: __tests__/cache/maven/pom.xml
|
|
- name: Create files to cache
|
|
run: |
|
|
mvn verify -f __tests__/cache/maven/pom.xml
|
|
bash __tests__/check-dir.sh "$HOME/.m2/repository"
|
|
maven1-restore:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [macos-15-intel, windows-latest, ubuntu-latest]
|
|
needs: maven1-save
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v7
|
|
with:
|
|
persist-credentials: false
|
|
- name: Run setup-java with the cache for maven
|
|
uses: ./
|
|
id: setup-java
|
|
with:
|
|
distribution: 'adopt'
|
|
java-version: '11'
|
|
cache: maven
|
|
cache-dependency-path: __tests__/cache/maven/pom.xml
|
|
- name: Confirm that ~/.m2/repository directory has been made
|
|
run: bash __tests__/check-dir.sh "$HOME/.m2/repository"
|
|
maven2-restore:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [macos-15-intel, windows-latest, ubuntu-latest]
|
|
needs: maven1-save
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v7
|
|
with:
|
|
persist-credentials: false
|
|
- name: Run setup-java with the cache for maven
|
|
uses: ./
|
|
id: setup-java
|
|
with:
|
|
distribution: 'adopt'
|
|
java-version: '11'
|
|
cache: maven
|
|
cache-dependency-path: __tests__/cache/maven2/pom.xml
|
|
- name: Confirm that ~/.m2/repository directory has not been made
|
|
run: bash __tests__/check-dir.sh "$HOME/.m2/repository" absent
|
|
sbt1-save:
|
|
runs-on: ${{ matrix.os }}
|
|
defaults:
|
|
run:
|
|
shell: bash
|
|
working-directory: __tests__/cache/sbt
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [macos-15-intel, windows-latest, ubuntu-22.04]
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v7
|
|
with:
|
|
persist-credentials: false
|
|
- name: Run setup-java with the cache for sbt
|
|
uses: ./
|
|
id: setup-java
|
|
with:
|
|
distribution: 'adopt'
|
|
java-version: '11'
|
|
cache: sbt
|
|
cache-dependency-path: __tests__/cache/sbt/*.sbt
|
|
- name: Setup SBT
|
|
if: matrix.os == 'macos-15-intel'
|
|
run: |
|
|
echo ""Installing SBT...""
|
|
brew install sbt
|
|
- name: Create files to cache
|
|
run: sbt update
|
|
|
|
- name: Check files to cache on macos-latest
|
|
if: matrix.os == 'macos-15-intel'
|
|
run: bash "$GITHUB_WORKSPACE/__tests__/check-dir.sh" "$HOME/Library/Caches/Coursier"
|
|
- name: Check files to cache on windows-latest
|
|
if: matrix.os == 'windows-latest'
|
|
run: bash "$GITHUB_WORKSPACE/__tests__/check-dir.sh" "$HOME/AppData/Local/Coursier/Cache"
|
|
- name: Check files to cache on ubuntu-latest
|
|
if: matrix.os == 'ubuntu-22.04'
|
|
run: bash "$GITHUB_WORKSPACE/__tests__/check-dir.sh" "$HOME/.cache/coursier"
|
|
sbt1-restore:
|
|
runs-on: ${{ matrix.os }}
|
|
defaults:
|
|
run:
|
|
shell: bash
|
|
working-directory: __tests__/cache/sbt
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [macos-15-intel, windows-latest, ubuntu-22.04]
|
|
needs: sbt1-save
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v7
|
|
with:
|
|
persist-credentials: false
|
|
- name: Run setup-java with the cache for sbt
|
|
uses: ./
|
|
id: setup-java
|
|
with:
|
|
distribution: 'adopt'
|
|
java-version: '11'
|
|
cache: sbt
|
|
cache-dependency-path: __tests__/cache/sbt/*.sbt
|
|
|
|
- name: Confirm that ~/Library/Caches/Coursier directory has been made
|
|
if: matrix.os == 'macos-15-intel'
|
|
run: bash "$GITHUB_WORKSPACE/__tests__/check-dir.sh" "$HOME/Library/Caches/Coursier"
|
|
- name: Confirm that ~/AppData/Local/Coursier/Cache directory has been made
|
|
if: matrix.os == 'windows-latest'
|
|
run: bash "$GITHUB_WORKSPACE/__tests__/check-dir.sh" "$HOME/AppData/Local/Coursier/Cache"
|
|
- name: Confirm that ~/.cache/coursier directory has been made
|
|
if: matrix.os == 'ubuntu-22.04'
|
|
run: bash "$GITHUB_WORKSPACE/__tests__/check-dir.sh" "$HOME/.cache/coursier"
|
|
sbt2-restore:
|
|
runs-on: ${{ matrix.os }}
|
|
defaults:
|
|
run:
|
|
shell: bash
|
|
working-directory: __tests__/cache/sbt2
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [macos-15-intel, windows-latest, ubuntu-22.04]
|
|
needs: sbt1-save
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v7
|
|
with:
|
|
persist-credentials: false
|
|
- name: Run setup-java with the cache for sbt
|
|
uses: ./
|
|
id: setup-java
|
|
with:
|
|
distribution: 'adopt'
|
|
java-version: '11'
|
|
cache: sbt
|
|
cache-dependency-path: __tests__/cache/sbt2/*.sbt
|
|
|
|
- name: Confirm that ~/Library/Caches/Coursier directory has not been made
|
|
if: matrix.os == 'macos-15-intel'
|
|
run: bash "$GITHUB_WORKSPACE/__tests__/check-dir.sh" "$HOME/Library/Caches/Coursier" absent
|
|
- name: Confirm that ~/AppData/Local/Coursier/Cache directory has not been made
|
|
if: matrix.os == 'windows-latest'
|
|
run: bash "$GITHUB_WORKSPACE/__tests__/check-dir.sh" "$HOME/AppData/Local/Coursier/Cache" absent
|
|
- name: Confirm that ~/.cache/coursier directory has not been made
|
|
if: matrix.os == 'ubuntu-22.04'
|
|
run: bash "$GITHUB_WORKSPACE/__tests__/check-dir.sh" "$HOME/.cache/coursier" absent
|