Refactor to spin off classes #69
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: Build | |
| on: | |
| push: | |
| branches: | |
| - develop | |
| pull_request: | |
| branches: | |
| - develop | |
| jobs: | |
| build: | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: '10.0.x' | |
| - name: Restore workloads | |
| run: dotnet workload restore --project src/Bible.Alarm/Bible.Alarm.csproj | |
| - name: Restore dependencies | |
| run: dotnet restore src/Bible.Alarm.sln | |
| - name: Build solution | |
| run: dotnet build src/Bible.Alarm.sln --configuration Release --no-restore | |
| - name: Run tests | |
| run: dotnet test src/Bible.Alarm.sln --configuration Release --no-build --verbosity normal --logger "trx;LogFileName=test-results.trx" --collect:"XPlat Code Coverage" | |
| - name: Upload test results | |
| uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: test-results | |
| path: | | |
| **/test-results.trx | |
| **/coverage.cobertura.xml | |
| retention-days: 30 |