Skip to content

feat: Enhance Dashboard Widget Configuration (#134) #56

feat: Enhance Dashboard Widget Configuration (#134)

feat: Enhance Dashboard Widget Configuration (#134) #56

name: Backend Library - Build and Lint
on:
push:
branches: [main, develop]
paths:
- "PhantomDave.BankTracking.Library/**"
- "PhantomDave.BankTracking.sln"
- ".github/workflows/backend-library.yml"
workflow_call:
jobs:
build-and-lint:
name: Build and Lint Backend Library
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v6
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.Library/PhantomDave.BankTracking.Library.csproj
- name: Format code
run: dotnet format PhantomDave.BankTracking.Library/PhantomDave.BankTracking.Library.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 Library code"
file_pattern: "PhantomDave.BankTracking.Library/**"
- name: Build
run: dotnet build PhantomDave.BankTracking.Library/PhantomDave.BankTracking.Library.csproj --configuration Release --no-restore