Update activity_diagram1.txt #25
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: CI | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| build-and-test: | |
| name: Build and Run CI Tests | |
| runs-on: ubuntu-latest | |
| env: | |
| DOTNET_VERSION: '8.0.x' | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v4 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: ${{ env.DOTNET_VERSION }} | |
| - name: Restore Dependencies | |
| run: dotnet restore | |
| - name: Build All Projects | |
| run: dotnet build --configuration Release --no-restore | |
| - name: Run NUnit CI Tests Only | |
| run: | | |
| dotnet test ./Testimize.Tests/Testimize.Tests.csproj \ | |
| --configuration Release \ | |
| --no-build \ | |
| --logger "trx;LogFileName=TestResults.trx" \ | |
| --filter "TestCategory=CI" \ | |
| --results-directory ./TestResults | |
| - name: Upload Test Results as Artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: TestResults | |
| path: ./TestResults/TestResults.trx | |
| - name: Visualize Test Results (dorny/test-reporter) | |
| uses: dorny/test-reporter@v1 | |
| if: always() # ensures this runs even if tests fail | |
| with: | |
| name: NUnit CI Test Report | |
| path: ./TestResults/TestResults.trx | |
| reporter: dotnet-trx |