Add separate GitHub Actions workflows for backend and frontend builds… #5
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 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: read | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: '9.0.x' | |
| - name: Restore dependencies | |
| run: dotnet restore PhantomDave.BankTracking.Data/PhantomDave.BankTracking.Data.csproj | |
| - name: Check code formatting | |
| run: dotnet format PhantomDave.BankTracking.Data/PhantomDave.BankTracking.Data.csproj --verify-no-changes --verbosity diagnostic | |
| - name: Build | |
| run: dotnet build PhantomDave.BankTracking.Data/PhantomDave.BankTracking.Data.csproj --configuration Release --no-restore |