Small changes to refactor the solution #20
Workflow file for this run
This file contains hidden or 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: 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 and API test | |
| run: | | |
| cd examples/spring-boot-demo/implementation | |
| # Make sure the test script is executable | |
| chmod +x test-api.sh | |
| # Run the comprehensive API test script | |
| # Uses 'local' profile and default port 8080 | |
| # Set CLEANUP_LOGS=true to remove log files after execution | |
| CLEANUP_LOGS=true ./test-api.sh local 8080 |