feat: Enhance Dashboard Widget Configuration (#134) #56
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: 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 |