Verify Local Development #1684
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: Verify Local Development | |
on: | |
schedule: | |
- cron: '0 5 * * *' # Runs everyday at 5 AM | |
workflow_dispatch: | |
push: | |
jobs: | |
verify-local-development-mode: | |
runs-on: ubuntu-22.04 | |
name: Verify local development mode | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: temurin | |
java-version: 21 | |
cache: maven | |
- name: Start the local environment and verify the application startup | |
run: | | |
docker compose up -d | |
./mvnw spring-boot:run & | |
timeout 180 .github/workflows/health-check.sh 8080 | |
- name: Stop local environment | |
if: always() | |
run: | | |
docker compose logs | |
docker compose down |