Skip to content

Add comprehensive testing infrastructure with xUnit, Playwright, and WebApplicationFactory #52

Add comprehensive testing infrastructure with xUnit, Playwright, and WebApplicationFactory

Add comprehensive testing infrastructure with xUnit, Playwright, and WebApplicationFactory #52

Workflow file for this run

name: Backend Data - Build and Lint
on:
push:
branches: [ main, develop ]
paths:
- 'PhantomDave.BankTracking.Data/**'
- 'PhantomDave.BankTracking.Library/**'
- 'PhantomDave.BankTracking.sln'
- '.github/workflows/backend-data.yml'
pull_request:
branches: [ main, develop ]
paths:
- 'PhantomDave.BankTracking.Data/**'
- 'PhantomDave.BankTracking.Library/**'
- 'PhantomDave.BankTracking.sln'
- '.github/workflows/backend-data.yml'
jobs:
build-and-lint:
name: Build and Lint Backend Data
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v5
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: '9.0.x'
- name: Restore dependencies
run: dotnet restore PhantomDave.BankTracking.Data/PhantomDave.BankTracking.Data.csproj
- name: Format code
run: dotnet format PhantomDave.BankTracking.Data/PhantomDave.BankTracking.Data.csproj --verbosity diagnostic
- name: Commit formatted code
uses: stefanzweifel/git-auto-commit-action@v7
if: github.event_name == 'push'
with:
commit_message: 'chore: auto-format Backend Data code'
file_pattern: 'PhantomDave.BankTracking.Data/**'
- name: Build
run: dotnet build PhantomDave.BankTracking.Data/PhantomDave.BankTracking.Data.csproj --configuration Release --no-restore