Skip to content

Update main.yml

Update main.yml #6

Workflow file for this run

name: Run unit tests
on:
push:
branches: [ "main" ]
jobs:
build-test-package:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Start MongoDB
uses: supercharge/mongodb-github-action@1.10.0
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 with Maven
working-directory: ./UserManagementAPI
run: mvn -B package --file pom.xml