chore(deps)(deps): Bump @angular/core from 20.3.12 to 20.3.13 in /frontend #189
Workflow file for this run
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: Frontend - Build and Lint | |
| on: | |
| push: | |
| branches: [main, develop] | |
| paths: | |
| - "frontend/**" | |
| - ".github/workflows/frontend.yml" | |
| pull_request: | |
| branches: [main, develop] | |
| paths: | |
| - "frontend/**" | |
| - ".github/workflows/frontend.yml" | |
| workflow_run: | |
| workflows: ["Build and Push Backend Image", "Build and Push Frontend Image"] | |
| types: [completed] | |
| jobs: | |
| build-and-lint: | |
| name: Build and Lint Frontend | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v5 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: "20" | |
| cache: "npm" | |
| cache-dependency-path: frontend/package-lock.json | |
| - name: Install dependencies | |
| working-directory: ./frontend | |
| run: npm ci | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: "9.0.x" | |
| - name: Restore dependencies | |
| run: dotnet restore PhantomDave.BankTracking.Api/PhantomDave.BankTracking.Api.csproj | |
| - name: Spin up Database with Docker Compose | |
| run: docker compose up database -d --wait | |
| - name: Start API in background | |
| working-directory: ./PhantomDave.BankTracking.Api | |
| run: | | |
| dotnet run > api.log 2>&1 & | |
| echo $! > api.pid | |
| env: | |
| ASPNETCORE_ENVIRONMENT: Development | |
| - name: Wait for API to be ready | |
| uses: jtalk/url-health-check-action@v4 | |
| with: | |
| url: http://localhost:5095/graphql | |
| max-attempts: 15 | |
| retry-delay: 2s | |
| - name: Show API logs on failure | |
| if: failure() | |
| working-directory: ./PhantomDave.BankTracking.Api | |
| run: | | |
| echo "=== API Logs ===" | |
| cat api.log || echo "No log file found" | |
| - name: Generate GraphQL types | |
| working-directory: ./frontend | |
| run: npm run codegen | |
| - name: Format code with Prettier | |
| working-directory: ./frontend | |
| run: npx prettier --write "src/**/*.{ts,html,css,scss}" | |
| - name: Commit formatted code | |
| uses: stefanzweifel/git-auto-commit-action@v7 | |
| if: github.event_name == 'push' | |
| with: | |
| commit_message: "chore: auto-format Frontend code" | |
| file_pattern: "frontend/src/**" | |
| - name: Check TypeScript compilation | |
| working-directory: ./frontend | |
| run: npx tsc --noEmit | |
| - name: Build | |
| working-directory: ./frontend | |
| run: npm run build -- --configuration=development |