diff --git a/.github/workflows/order-service.yml b/.github/workflows/order-service.yml new file mode 100644 index 0000000..be37ae1 --- /dev/null +++ b/.github/workflows/order-service.yml @@ -0,0 +1,38 @@ +name: Order Service + +on: + push: + paths: + - order-service/** + branches: + - '**' + pull_request: + branches: [master] + +jobs: + build: + name: Build + runs-on: ubuntu-latest + env: + working-directory: ./order-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: Force update Maven dependencies and build + run: ./mvnw clean install -U + + - name: Run tests + run: ./mvnw test \ No newline at end of file diff --git a/.idea/compiler.xml b/.idea/compiler.xml index fc667d8..6e1919c 100644 --- a/.idea/compiler.xml +++ b/.idea/compiler.xml @@ -7,6 +7,7 @@ + @@ -23,6 +24,7 @@ \ No newline at end of file diff --git a/.idea/encodings.xml b/.idea/encodings.xml index e2c3312..0297598 100644 --- a/.idea/encodings.xml +++ b/.idea/encodings.xml @@ -2,6 +2,7 @@ + diff --git a/.idea/jarRepositories.xml b/.idea/jarRepositories.xml index 712ab9d..d83aa6e 100644 --- a/.idea/jarRepositories.xml +++ b/.idea/jarRepositories.xml @@ -6,6 +6,11 @@ \ No newline at end of file