added integration test for product repository and controller when pr… #6
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: Catalog Service | |
| on: | |
| push: | |
| paths: | |
| - catalog-service/** | |
| branches: | |
| - "**" | |
| pull_request: | |
| paths: | |
| - catalog-service/** | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| env: | |
| working-directory: ./catalog-service | |
| defaults: | |
| run: | |
| working-directory: ${{env.working-directory}} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Java 21 | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '21' | |
| cache: 'maven' | |
| - name: Applying Spotless Plugin | |
| run: ./mvnw spotless:apply | |
| - name: Make Maven wrapper executable | |
| run: chmod +x ./mvnw | |
| - name: Build with Maven | |
| run: ./mvnw -ntp verify |