Skip to content

chore: Complex start up check #6602

chore: Complex start up check

chore: Complex start up check #6602

name: Verify that all services can register
on:
push:
branches: [ v2.x.x, v3.x.x ]
paths-ignore:
- '**.md'
pull_request:
branches: [ v2.x.x, v3.x.x ]
paths-ignore:
- '**.md'
workflow_dispatch:
env:
JOB_ID: ${{ github.run_id }}-${{ github.run_number }}
jobs:
BuildAndTest:
runs-on: ubuntu-latest
timeout-minutes: 35
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- uses: ./.github/actions/setup
- name: Install BATS to test the shell scripts
run: |
git clone https://github.com/bats-core/bats-core.git
cd bats-core && sudo ./install.sh /usr/local
- name: Run shell script tests
run: bats scripts/test/start_test.bats
- name: Build with Gradle
run: >
./gradlew clean build --info --scan
- name: Store results
uses: actions/upload-artifact@v4
if: always()
with:
name: BuildAndTest-${{ env.JOB_ID }}
path: |
*/build/reports/**
- uses: ./.github/actions/teardown
Register:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- uses: ./.github/actions/setup
- name: Build with Gradle
run: >
./gradlew clean build -x test -x npmTest -x npmInstall -x npmBuild --info --scan
- name: Run startup check for microservices
run: >
./gradlew runStartUpCheck --info --scan -Denvironment.startServices=true
- name: Run startup check for modulith
run: >
./gradlew runStartUpCheck --info --scan -Denvironment.startServices=true -Denvironment.modulith=true -Denvironment.config=-modulith
- name: Store results
uses: actions/upload-artifact@v4
if: always()
with:
name: Register-${{ env.JOB_ID }}
path: |
*/build/reports/**
- uses: ./.github/actions/teardown