Skip to content

added integration test for product repository and controller when pr… #6

added integration test for product repository and controller when pr…

added integration test for product repository and controller when pr… #6

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