feat: update spring-boot to 3.x #1350
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@v3 | |
- 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@v3 | |
with: | |
fetch-depth: 0 | |
- uses: wagoid/commitlint-github-action@v5 | |
mvn-test: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v3 | |
- name: Set up Java 17 | |
uses: actions/[email protected] | |
with: | |
java-version: 17 | |
java-package: jdk | |
architecture: x64 | |
- name: Handle caching of maven repository | |
uses: actions/cache@v2 | |
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@v2 | |
- name: Set up Java 17 | |
uses: actions/[email protected] | |
with: | |
java-version: 17 | |
java-package: jdk | |
architecture: x64 | |
- name: Cache the Maven packages to speed up build | |
uses: actions/cache@v1 | |
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 4fdcbc51fa2d20bcfb0bcafafdfdece83c863819 | |
working-directory: ../shogun-docker | |
- name: Set environment variables | |
run: ./setEnvironment.sh | |
working-directory: ../shogun-docker | |
- name: Show environment variables | |
run: cat .env | |
working-directory: ../shogun-docker | |
- name: Start containers | |
run: docker-compose -f docker-compose.yml -f docker-compose-dev.yml up -d | |
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 -f docker-compose.yml -f docker-compose-dev.yml logs | |
working-directory: ../shogun-docker | |
- name: Maven output | |
if: always() | |
run: cat mvn.out.txt |