mirror of
https://github.com/keycloak/keycloak.git
synced 2026-01-10 15:32:05 -03:30
63 lines
1.7 KiB
YAML
63 lines
1.7 KiB
YAML
name: Stability - Base Reruns
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
tests:
|
|
type: string
|
|
description: Tests to run
|
|
required: true
|
|
count:
|
|
type: number
|
|
description: Number of re-runs
|
|
default: 50
|
|
|
|
env:
|
|
MAVEN_ARGS: "-B -nsu -Daether.connector.http.connectionMaxTtl=25"
|
|
|
|
defaults:
|
|
run:
|
|
shell: bash
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
|
|
build:
|
|
name: Build
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
|
|
|
- name: Build Keycloak
|
|
uses: ./.github/actions/build-keycloak
|
|
|
|
base-integration-tests:
|
|
name: Base IT
|
|
needs: build
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 360
|
|
steps:
|
|
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
|
|
|
- id: integration-test-setup
|
|
name: Integration test setup
|
|
uses: ./.github/actions/integration-test-setup
|
|
|
|
- name: Run base tests
|
|
run: |
|
|
TESTS="${{ inputs.tests }}"
|
|
COUNT=${{ inputs.count }}
|
|
echo "Tests: $TESTS, count: $COUNT"
|
|
FAILURES=0
|
|
for i in $(seq 1 $COUNT); do
|
|
echo "========================================================================="
|
|
echo Run: $i
|
|
echo "========================================================================="
|
|
./mvnw test ${{ env.SUREFIRE_RETRY }} -Pauth-server-quarkus -Dtest=$TESTS -pl testsuite/integration-arquillian/tests/base 2>&1 | misc/log/trimmer.sh || FAILURES=$(($FAILURES + 1))
|
|
FAILURES=$(($FAILURES + $?))
|
|
done
|
|
echo "Failures: $FAILURES"
|
|
exit $FAILURES
|