Skip to content

Backend/vps deployment #26

Backend/vps deployment

Backend/vps deployment #26

Workflow file for this run

name: Personal Blog Backend Test CI
on:
pull_request:
branches: ["main"]
workflow_dispatch:
env:
API_SECRET: secret
APP_FOLDER: backend
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: "21"
distribution: "temurin"
cache: maven
- name: Run unit tests
working-directory: ${{ env.APP_FOLDER }}
run: mvn -B test
- name: Run integration tests
working-directory: ${{ env.APP_FOLDER }}
run: mvn test -B -P integration-tests