Added the Java-CI pipeline #1
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: Java Spring Boot CI Pipeline | |
| on: | |
| push: | |
| branches: ["test", "dev", "main"] | |
| pull_request: | |
| branches: ["test", "dev", "main"] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v3 | |
| with: | |
| java-version: "17" | |
| distribution: "temurin" | |
| cache: "maven" | |
| # Make sure the wrapper is executable | |
| - name: Grant execute permission for mvnw | |
| run: chmod +x mvnw | |
| # Build, test, and check coverage in one efficient command | |
| - name: Build, Test, and Verify Coverage | |
| run: ./mvnw clean verify |