From 319177181430b065cb14551a4a5d37f4213d1732 Mon Sep 17 00:00:00 2001 From: Jordi <55429631+jorbush@users.noreply.github.com> Date: Thu, 19 Sep 2024 08:50:57 +0200 Subject: [PATCH] test backend --- .github/workflows/spring-boot-test.yml | 30 ++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/spring-boot-test.yml diff --git a/.github/workflows/spring-boot-test.yml b/.github/workflows/spring-boot-test.yml new file mode 100644 index 0000000..c55f10f --- /dev/null +++ b/.github/workflows/spring-boot-test.yml @@ -0,0 +1,30 @@ +name: Spring Boot Tests + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + maven-test: + runs-on: ubuntu-latest + defaults: + run: + working-directory: postrify-backend + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up JDK 17 + uses: actions/setup-java@v1 + with: + java-version: '17' + + - name: Build with Maven + run: ./mvnw clean install + + - name: Run tests + run: ./mvnw test