2022-12-14 15:12:23 +00:00
|
|
|
name: Setup integration test
|
|
|
|
description: Download Maven caches needed for integration tests
|
|
|
|
|
|
|
|
inputs:
|
|
|
|
jdk-dist:
|
|
|
|
description: JDK distribution
|
|
|
|
required: false
|
|
|
|
default: temurin
|
|
|
|
jdk-version:
|
|
|
|
description: JDK version
|
|
|
|
required: false
|
2024-06-03 12:17:28 +00:00
|
|
|
default: "21"
|
2022-12-14 15:12:23 +00:00
|
|
|
|
|
|
|
runs:
|
|
|
|
using: composite
|
|
|
|
steps:
|
|
|
|
- id: setup-java
|
|
|
|
name: Setup Java
|
2023-07-26 10:35:21 +00:00
|
|
|
uses: ./.github/actions/java-setup
|
2022-12-14 15:12:23 +00:00
|
|
|
with:
|
|
|
|
distribution: ${{ inputs.jdk-dist }}
|
|
|
|
java-version: ${{ inputs.jdk-version }}
|
|
|
|
|
|
|
|
- id: maven-cache
|
|
|
|
name: Maven cache
|
|
|
|
uses: ./.github/actions/maven-cache
|
|
|
|
|
2024-11-06 07:25:49 +00:00
|
|
|
- id: pnpm-store-cache
|
|
|
|
name: PNPM store cache
|
|
|
|
uses: ./.github/actions/pnpm-store-cache
|
2023-10-30 11:50:06 +00:00
|
|
|
|
2022-12-14 15:12:23 +00:00
|
|
|
- id: download-keycloak
|
|
|
|
name: Download Keycloak Maven artifacts
|
2024-04-15 15:14:00 +00:00
|
|
|
uses: actions/download-artifact@v4
|
2022-12-14 15:12:23 +00:00
|
|
|
with:
|
|
|
|
name: m2-keycloak.tzts
|
|
|
|
|
|
|
|
- id: extract-maven-artifacts
|
|
|
|
name: Extract Keycloak Maven artifacts
|
|
|
|
shell: bash
|
2023-07-18 10:15:56 +00:00
|
|
|
run: |
|
|
|
|
if [ "$RUNNER_OS" == "Windows" ]; then
|
2024-08-01 12:30:58 +00:00
|
|
|
# zstd binary might be missing in older versions, install only when necessary
|
|
|
|
which zstd > /dev/null || choco install zstandard
|
2023-07-18 10:15:56 +00:00
|
|
|
fi
|
|
|
|
tar -C ~/ --use-compress-program="zstd -d" -xf m2-keycloak.tzts
|