Skip to content

❌Add publish test github action #26

❌Add publish test github action

❌Add publish test github action #26

Workflow file for this run

name: Build and Test
on:
pull_request:
env:
TEST_RESULTS_PATH: ${{ github.workspace }}/test-results.trx
permissions:
contents: read
actions: read
checks: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Setup .NET
uses: actions/[email protected]
with:
dotnet-version: 8.0.100
- name: Dotnet Build
run: dotnet build --configuration Release
- name: Dotnet Test
run: |
dotnet test --configuration Release --no-restore --no-build --logger "trx;LogFileName=${{ env.TEST_RESULTS_PATH }}"
- name: Upload test results
uses: actions/upload-artifact@v4
if: success() || failure()
with:
name: test-results
path: ${{ env.TEST_RESULTS_PATH }}
- name: Upload test results
uses: dorny/[email protected]
if: success() || failure()
with:
name: XUnit Tests
path: ${{ env.TEST_RESULTS_PATH }}
reporter: dotnet-trx