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