Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
blaz-cerpnjak authored Mar 20, 2024
1 parent 2e86346 commit 54513a6
Showing 1 changed file with 37 additions and 2 deletions.
39 changes: 37 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
- '!README.md'

jobs:
build-test-package:
test-user-management-api:
runs-on: ubuntu-latest

steps:
Expand All @@ -31,7 +31,7 @@ jobs:
working-directory: ./UserManagementAPI
run: mvn -B package --file pom.xml

build-test-orders-api:
test-order-processing-api:
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -65,3 +65,38 @@ jobs:
- name: Run tests
working-directory: ./OrderProcessingAPI
run: ./gradlew test

test-restaurant-management-api:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Start MongoDB
uses: supercharge/[email protected]
with:
mongodb-version: 7.0.6

- name: Set up JDK 21
uses: actions/setup-java@v3
with:
java-version: '21'
distribution: 'temurin'
cache: gradle

- name: Make gradlew executable (if needed)
working-directory: ./RestaurantManagementAPI
run: chmod +x ./gradlew

- name: Setup Gradle
working-directory: ./RestaurantManagementAPI
run: gradle wrapper --gradle-version 8.5

- name: Build with Gradle
working-directory: ./RestaurantManagementAPI
run: ./gradlew build --no-daemon

- name: Run tests
working-directory: ./RestaurantManagementAPI
run: ./gradlew test

0 comments on commit 54513a6

Please sign in to comment.