refactor: update TrainingPeaksUserDTO structure and enhance deseriali… #127
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Docker Build | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths-ignore: | |
| - "**/*.md" | |
| - "LICENSE" | |
| pull_request: | |
| branches: | |
| - main | |
| paths-ignore: | |
| - "**/*.md" | |
| - "LICENSE" | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| backend-test: | |
| name: Backend tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v5 | |
| - name: Set up Java | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: corretto | |
| java-version: "21" | |
| cache: gradle | |
| cache-dependency-path: | | |
| boot/*.gradle* | |
| boot/gradle/wrapper/gradle-wrapper.properties | |
| - name: Make Gradle wrapper executable | |
| working-directory: boot | |
| run: chmod +x gradlew | |
| - name: Run backend tests | |
| working-directory: boot | |
| run: ./gradlew clean test --no-daemon | |
| frontend-test: | |
| name: Frontend build and tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v5 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v5 | |
| with: | |
| node-version: "22.23.1" | |
| cache: npm | |
| cache-dependency-path: ui/package-lock.json | |
| - name: Install dependencies | |
| working-directory: ui | |
| run: npm ci | |
| - name: Build frontend | |
| working-directory: ui | |
| run: npm run build | |
| - name: Run frontend tests | |
| working-directory: ui | |
| run: > | |
| npm test -- | |
| --watch=false | |
| --browsers=ChromeHeadless | |
| docker-build: | |
| name: Docker build validation | |
| runs-on: ubuntu-latest | |
| needs: | |
| - backend-test | |
| - frontend-test | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v5 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v4 | |
| - name: Build Docker image | |
| uses: docker/build-push-action@v7 | |
| with: | |
| context: . | |
| push: false | |
| tags: workout-relay:ci |