From a1f2fe8843ac309828fe07c79f56df6398e2853c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20=C5=BDdanov?= Date: Sat, 27 Apr 2024 13:17:13 +0300 Subject: [PATCH] add github workflow for catalog-service --- .github/workflows/catalog-service.yml | 26 ++++++++++++++++++++++++++ pom.xml | 2 +- 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/catalog-service.yml diff --git a/.github/workflows/catalog-service.yml b/.github/workflows/catalog-service.yml new file mode 100644 index 0000000..e8aa320 --- /dev/null +++ b/.github/workflows/catalog-service.yml @@ -0,0 +1,26 @@ +name: Catalog Service +on: + push: + paths: + - catalog-service/** + branches: + - '**' +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: Build with Maven + run: ./mvnw -ntp verify diff --git a/pom.xml b/pom.xml index 17d0a8e..df1ee74 100644 --- a/pom.xml +++ b/pom.xml @@ -8,7 +8,7 @@ bookstore 0.0.1-SNAPSHOT pom - bookstore-microservices + bookstore UTF-8