diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..f336986 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,24 @@ +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: Set up JDK 17 + uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'temurin' + cache: maven + + - name: Build and test with Maven + working-directory: ./UserManagementAPI + run: mvn -B package --file pom.xml