keycloak-scim/.github/actions/integration-test-setup/action.yml
Jon Koops 2f617bd28e
Place Java setup in re-usable workflow file (#17541)
Co-authored-by: Stian Thorgersen <stianst@gmail.com>
2023-07-26 10:35:21 +00:00

45 lines
1.1 KiB
YAML

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
default: "17"
runs:
using: composite
steps:
- id: setup-java
name: Setup Java
uses: ./.github/actions/java-setup
with:
distribution: ${{ inputs.jdk-dist }}
java-version: ${{ inputs.jdk-version }}
- id: maven-cache
name: Maven cache
uses: ./.github/actions/maven-cache
- id: phantomjs-cache
name: PhantomJS cache
uses: ./.github/actions/phantomjs-cache
- id: download-keycloak
name: Download Keycloak Maven artifacts
uses: actions/download-artifact@v3
with:
name: m2-keycloak.tzts
- id: extract-maven-artifacts
name: Extract Keycloak Maven artifacts
shell: bash
run: |
if [ "$RUNNER_OS" == "Windows" ]; then
choco install zstandard
fi
tar -C ~/ --use-compress-program="zstd -d" -xf m2-keycloak.tzts