Skip to content

test(e2e): suite Playwright base (pagine pubbliche, auth, check-in be… #20

test(e2e): suite Playwright base (pagine pubbliche, auth, check-in be…

test(e2e): suite Playwright base (pagine pubbliche, auth, check-in be… #20

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
backend:
name: Backend (build + test)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET 10
uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.0.x'
- name: Restore
working-directory: backend
run: dotnet restore Accanto.slnx
- name: Build
working-directory: backend
run: dotnet build Accanto.slnx -c Release --no-restore
- name: Test
working-directory: backend
run: dotnet test Accanto.slnx -c Release --no-build --logger "trx;LogFileName=test-results.trx"
- name: Upload test results
if: always()
uses: actions/upload-artifact@v4
with:
name: backend-test-results
path: backend/**/TestResults/*.trx
if-no-files-found: ignore
frontend:
name: Frontend (build)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node 22
uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'
cache-dependency-path: frontend/package-lock.json
- name: Install
working-directory: frontend
run: npm ci
- name: Build
working-directory: frontend
env:
VITE_API_BASE_URL: /api
run: npm run build