Skip to content

Commit

Permalink
[build]: update build-test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Anu6is authored Apr 8, 2024
1 parent 2d80ea5 commit 1156616
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,29 @@ jobs:
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'

- name: Build
run: dotnet build ./tests/StaticInput.UnitTests/StaticInput.UnitTests.csproj

- name: Install playwright browsers
run: pwsh ./tests/StaticInput.UnitTests/bin/Debug/net8.0/playwright.ps1 install --with-deps

- name: Run tests
run: >
dotnet test ./tests/StaticInput.UnitTests
--configuration Release
--logger "GitHubActions;summary.includePassedTests=true;summary.includeSkippedTests=true"
--logger trx
--logger "GitHubActions;summary.includePassedTests=true;summary.includeSkippedTests=true"
- name: Upload Test Result Files
uses: actions/upload-artifact@v4
with:
name: test-results
path: ${{ github.workspace }}/**/TestResults/**/*
retention-days: 5

- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v2.16.1
if: always()
with:
files: ${{ github.workspace }}/**/*.trx

0 comments on commit 1156616

Please sign in to comment.