build(deps): bump org.keycloak:keycloak-admin-client from 26.0.1 to 26.0.2 #1993
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test SHOGun | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
license-headers: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Check License Header | |
uses: apache/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
commitlint: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: wagoid/commitlint-github-action@v6 | |
mvn-test: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Set up Java 21 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: temurin | |
java-version: '21' | |
architecture: x64 | |
- name: Handle caching of maven repository | |
uses: actions/cache@v4 | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
restore-keys: | | |
${{ runner.os }}-maven- | |
- name: Test SHOGun with Maven | |
env: | |
KEYCLOAK_HOST: localhost | |
run: mvn -B test | |
startup: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Java 21 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: temurin | |
java-version: '21' | |
architecture: x64 | |
- name: Cache the Maven packages to speed up build | |
uses: actions/cache@v4 | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
restore-keys: ${{ runner.os }}-maven | |
- name: Run mvn install | |
run: mvn install --log-file mvn.out.txt | |
- name: Clone shogun-docker | |
run: git clone https://github.com/terrestris/shogun-docker | |
working-directory: ../ | |
- name: Checkout specific commit to ensure reproducibility | |
run: git checkout f156901098a55639ea8c9496d6c8b38ce1b1c8d7 | |
working-directory: ../shogun-docker | |
- name: Set environment variables | |
run: ./setEnvironment.sh create -y | |
working-directory: ../shogun-docker | |
- name: Show environment variables | |
run: cat .env | |
working-directory: ../shogun-docker | |
- name: Start containers | |
run: docker compose up -d shogun-postgis shogun-boot shogun-gs-interceptor | |
working-directory: ../shogun-docker | |
- name: Inspect network | |
run: docker network inspect shogun-docker_default | |
working-directory: ../shogun-docker | |
- name: Check if application has started | |
run: ./scripts/wait.sh | |
- name: Docker logs | |
if: always() | |
run: docker compose logs | |
working-directory: ../shogun-docker | |
- name: Maven output | |
if: always() | |
run: cat mvn.out.txt |