Skip to content

Completed Task 4

Completed Task 4 #16

Workflow file for this run

name: CI Builds
on: [push]
jobs:
run:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true # Fetches all submodules
- uses: actions/setup-java@v4
with:
distribution: 'graalvm' # See 'Supported distributions' for available options
java-version: '24'
- name: Maven build
run: cd examples/maven-demo && ./mvnw --batch-mode --no-transfer-progress verify --file pom.xml
- name: Spring Boot build
run: cd examples/spring-boot-demo/implementation && ./mvnw --batch-mode --no-transfer-progress verify --file pom.xml
- name: Spring Boot startup test
run: |
cd examples/spring-boot-demo/implementation
# Start the application in the background
./mvnw clean spring-boot:run -Dspring-boot.run.profiles=local &
APP_PID=$!
# Wait for 30 seconds to let the application start and run
echo "Testing application startup for 30 seconds..."
sleep 30
# Stop the application
kill $APP_PID || true
wait $APP_PID 2>/dev/null || true
echo "Application startup test completed successfully"