deps(frontend): bump react-router-dom from 6.30.3 to 7.13.1 in /frontend #4
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: CI Pipeline | |
| on: | |
| push: | |
| branches: "**" # Run on all branches | |
| pull_request: | |
| branches: "**" # Run on all branches | |
| permissions: | |
| contents: read | |
| security-events: write | |
| jobs: | |
| codeql: | |
| name: CodeQL Analysis | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Initialize CodeQL | |
| uses: github/codeql-action/init@v4 | |
| with: | |
| languages: javascript,csharp | |
| - name: Autobuild | |
| uses: github/codeql-action/autobuild@v4 | |
| - name: Perform CodeQL analysis | |
| uses: github/codeql-action/analyze@v4 | |
| build-frontend: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Use Node.js 18 | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: '18' | |
| - name: Cache node modules | |
| uses: actions/cache@v5 | |
| with: | |
| path: frontend/node_modules | |
| key: ${{ runner.os }}-node-${{ hashFiles('frontend/**/package-lock.json','frontend/**/package.json') }} | |
| restore-keys: | | |
| ${{ runner.os }}-node- | |
| - name: Install and build frontend | |
| run: | | |
| cd frontend | |
| npm install --prefer-offline --no-audit --no-fund | |
| npm run build | |
| - name: Run frontend tests | |
| run: | | |
| cd frontend | |
| npm test -- --watchAll=false --passWithNoTests --coverage --coverageReporters=text --coverageReporters=lcov | |
| - name: Upload frontend coverage | |
| uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: frontend-coverage | |
| path: frontend/coverage | |
| retention-days: 7 | |
| build-backend: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Setup .NET 8 | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: '8.0.x' | |
| - name: Cache NuGet packages | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/.nuget/packages | |
| key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }} | |
| restore-keys: | | |
| ${{ runner.os }}-nuget- | |
| - name: Restore dependencies | |
| run: | | |
| cd backend | |
| dotnet restore | |
| - name: Build backend | |
| run: | | |
| cd backend | |
| dotnet build --configuration Release --no-restore | |
| - name: Run backend tests | |
| run: | | |
| cd backend | |
| dotnet test --no-build --verbosity normal --logger "trx;LogFileName=TestResults.trx" --collect:"XPlat Code Coverage" | |
| - name: Upload test results | |
| uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: test-results | |
| path: backend/**/TestResults/ | |
| retention-days: 7 |