adding templates #14
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: Build, Deploy, and Analyze | ||
on: | ||
push: | ||
branches: | ||
- '**' | ||
pull_request: | ||
branches: | ||
- master | ||
workflow_dispatch: # Allow for manual trigger via GitHub UI | ||
jobs: | ||
# Call the Java and Maven setup workflow | ||
java-maven-setup: | ||
uses: ./.github/workflows/setup-java-maven.yml # Reference to the consolidated Java and Maven setup workflow | ||
# Call the build and artifact workflow | ||
build-and-artifact: | ||
uses: ./.github/workflows/build-and-artifact.yml # Reference to the build workflow | ||
# Call the Spring Boot run and stop workflow | ||
springboot-run-stop: | ||
uses: ./.github/workflows/springboot-run-stop.yml # Reference to the Spring Boot workflow | ||
# Call the SonarCloud analysis workflow | ||
sonarcloud-analysis: | ||
uses: ./.github/workflows/sonarcloud-analysis.yml # Reference to the SonarCloud analysis workflow | ||
with: | ||
sonar-token: ${{ secrets.SONAR_TOKEN }} | ||
Check failure on line 29 in .github/workflows/main.yml
|
||
sonar-org: your-organization # Replace with your actual SonarCloud organization | ||
sonar-host-url: https://sonarcloud.io |