Skip to content

Update main.yml

Update main.yml #24

Workflow file for this run

name: Run unit tests
on:
push:
branches: [ "main" ]
paths:
- '**/*'
- '!README.md'
jobs:
build-test-package:
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: maven
- name: Build and test User Management API
working-directory: ./UserManagementAPI
run: mvn -B package --file pom.xml
- name: Setup Gradle
uses: gradle/gradle-build-action@v3
- working-directory: ./OrderProcessingAPI
- run: gradle wrapper 8.5
- run: chmod +x gradlew
- name: Build Orders gRPC API
run: ./gradlew build
- name: Test Orders gRPC API
run: ./gradlew test