chore(deps): Bump Microsoft.AspNetCore.Authentication.JwtBearer from 8.0.25 to 8.0.26 #273
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: CI | |
| on: | |
| push: | |
| branches: [main, develop] | |
| pull_request: | |
| branches: [main, develop] | |
| env: | |
| DOTNET_VERSION: '8.0.x' | |
| NODE_VERSION: '20' | |
| jobs: | |
| # =========================================== | |
| # API Tests & Lint | |
| # =========================================== | |
| api-test: | |
| name: API Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: ${{ env.DOTNET_VERSION }} | |
| - name: Restore dependencies | |
| run: dotnet restore HQStudio.API.Tests/HQStudio.API.Tests.csproj | |
| - name: Build | |
| run: dotnet build HQStudio.API.Tests/HQStudio.API.Tests.csproj --no-restore | |
| - name: Test with Coverage | |
| run: dotnet test HQStudio.API.Tests/HQStudio.API.Tests.csproj --no-build --verbosity normal --collect:"XPlat Code Coverage" --results-directory ./coverage | |
| - name: Upload API Coverage to Codecov | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| files: ./coverage/**/coverage.cobertura.xml | |
| flags: api | |
| name: api-coverage | |
| fail_ci_if_error: false | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| - name: Upload test results | |
| uses: actions/upload-artifact@v7 | |
| if: always() | |
| with: | |
| name: api-test-results | |
| path: HQStudio.API.Tests/TestResults/ | |
| # =========================================== | |
| # Web Tests & Lint | |
| # =========================================== | |
| web-test: | |
| name: Web Tests & Lint | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: HQStudio.Web | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: ${{ env.NODE_VERSION }} | |
| cache: 'npm' | |
| cache-dependency-path: HQStudio.Web/package-lock.json | |
| - name: Install dependencies | |
| run: npm ci --legacy-peer-deps | |
| - name: Lint | |
| run: npm run lint | |
| - name: Type check | |
| run: npx tsc --noEmit | |
| - name: Test with Coverage | |
| run: npm test -- --coverage | |
| - name: Upload Web Coverage to Codecov | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| files: ./coverage/coverage-final.json | |
| flags: web | |
| name: web-coverage | |
| fail_ci_if_error: false | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| # =========================================== | |
| # Desktop Build (Windows only) | |
| # =========================================== | |
| desktop-build: | |
| name: Desktop Build | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: ${{ env.DOTNET_VERSION }} | |
| - name: Restore dependencies | |
| run: dotnet restore HQStudio.Desktop/HQStudio.csproj | |
| - name: Build | |
| run: dotnet build HQStudio.Desktop/HQStudio.csproj --configuration Release --no-restore | |
| - name: Test | |
| run: dotnet test HQStudio.Desktop.Tests/HQStudio.Desktop.Tests.csproj --verbosity normal --filter "Category!=Integration" | |
| - name: Take Screenshots | |
| shell: pwsh | |
| env: | |
| SCREENSHOT_MODE: "true" | |
| SCREENSHOT_HIDDEN: "true" | |
| SCREENSHOT_OUTPUT: "screenshots" | |
| run: | | |
| $exe = "HQStudio.Desktop/bin/Release/net8.0-windows/HQStudio.exe" | |
| if (Test-Path $exe) { | |
| Write-Host "Starting screenshot mode..." | |
| $process = Start-Process -FilePath $exe -PassThru -NoNewWindow | |
| $timeout = 60 | |
| $waited = 0 | |
| while (!$process.HasExited -and $waited -lt $timeout) { | |
| Start-Sleep -Seconds 1 | |
| $waited++ | |
| } | |
| if (!$process.HasExited) { | |
| Write-Host "Timeout - killing process" | |
| $process.Kill() | |
| } | |
| Write-Host "Screenshot process exited with code: $($process.ExitCode)" | |
| } else { | |
| Write-Host "Executable not found: $exe" | |
| } | |
| - name: Upload Screenshots | |
| uses: actions/upload-artifact@v7 | |
| if: always() | |
| with: | |
| name: desktop-screenshots | |
| path: screenshots/ | |
| if-no-files-found: ignore | |
| # =========================================== | |
| # Docker Build Test | |
| # =========================================== | |
| docker-build: | |
| name: Docker Build | |
| runs-on: ubuntu-latest | |
| needs: [api-test, web-test] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Build API Docker image | |
| run: docker build -t hqstudio-api:test ./HQStudio.API | |
| - name: Build Web Docker image | |
| run: docker build -t hqstudio-web:test ./HQStudio.Web |