Skip to content

feat: add CI workflows for backend and frontend; configure build and … #1

feat: add CI workflows for backend and frontend; configure build and …

feat: add CI workflows for backend and frontend; configure build and … #1

Workflow file for this run

name: Backend CI
on:
push:
branches: [main, develop]
paths:
- "backend/**"
- ".github/workflows/backend-ci.yml"
pull_request:
branches: [main, develop]
paths:
- "backend/**"
jobs:
build:
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"
- name: Build with Gradle
working-directory: backend
run: ./gradlew build
- name: Run tests
working-directory: backend
run: ./gradlew test
- name: Upload test results
if: always()
uses: actions/upload-artifact@v3
with:
name: backend-test-results
path: backend/build/reports/tests/