Implement Get Products API with pagination #3
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: Catalog Service | |
on: | |
push: | |
paths: | |
- catalog-service/** | |
branches: | |
- '**' | |
pull_request: | |
branches: [master] | |
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: | |
java-version: '21' | |
distribution: 'temurin' | |
cache: 'maven' | |
- name: Make Maven wrapper executable | |
run: chmod +x mvnw | |
- name: Build with Maven | |
run: ./mvnw -ntp verify |