Cleanup dependencies from core #331
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: Tests on Windows | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| jobs: | |
| build: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Setup .NET 10 SDK | |
| uses: actions/setup-dotnet@v1.7.2 | |
| with: | |
| dotnet-version: 10.0.x | |
| - name: Clean | |
| run: dotnet clean | |
| - name: Install dependencies | |
| run: dotnet restore | |
| - name: Setup Chrome | |
| if: github.event_name == 'pull_request' | |
| uses: browser-actions/setup-chrome@latest | |
| - name: Build | |
| run: dotnet build --configuration Debug --no-restore | |
| - name: Test | |
| if: github.event_name == 'pull_request' | |
| id: test | |
| continue-on-error: true | |
| run: | | |
| dotnet test --no-build --no-restore --verbosity normal --filter "Category=CI&FullyQualifiedName!~Mobile&FullyQualifiedName!~Desktop" --logger "trx;LogFileName=test-results.trx" | |
| - name: Publish Test Results | |
| if: github.event_name == 'pull_request' && always() | |
| uses: EnricoMi/publish-unit-test-result-action/windows@v2 | |
| with: | |
| files: '**/test-results.trx' | |
| check_name: 'Test Results' | |
| - name: Check Test Results | |
| if: github.event_name == 'pull_request' && steps.test.outcome == 'failure' | |
| run: | | |
| echo "::warning::Tests failed" | |
| exit 1 |