Skip to content

fix: configure Vite proxy and ASP.NET static file serving for SPA #16

fix: configure Vite proxy and ASP.NET static file serving for SPA

fix: configure Vite proxy and ASP.NET static file serving for SPA #16

Workflow file for this run

name: Build & Test
on:
pull_request:
branches: [main]
jobs:
backend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.0.x'
- uses: actions/cache@v4
with:
path: ~/.nuget/packages
key: nuget-${{ runner.os }}-${{ hashFiles('src/**/*.csproj') }}
restore-keys: |
nuget-${{ runner.os }}-
- run: dotnet restore
working-directory: src
- run: dotnet build --no-restore
working-directory: src
- run: dotnet test --no-build --verbosity normal
working-directory: src
frontend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'
cache-dependency-path: src/Clientside/package-lock.json
- run: npm ci --legacy-peer-deps
working-directory: src/Clientside
- name: Prettier check
run: npm run format:check
working-directory: src/Clientside
- name: ESLint
run: npm run lint
working-directory: src/Clientside
- run: npm run build
working-directory: src/Clientside