Skip to content

Add build and test gihub action #5

Add build and test gihub action

Add build and test gihub action #5

Workflow file for this run

name: Build and Test
on:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
dotnet-version: 8.0.100
- run: dotnet build --configuration Release
- run: |
dotnet test --configuration Release --no-restore --no-build --logger "trx;LogFileName=${{ github.workspace }}/test-results.trx"
- run: echo "PWD=$(pwd)" >> $GITHUB_ENV
- uses: dorny/[email protected]
if: success() || failure()
with:
name: XUnit Tests
path: ${{ github.workspace }}/test-results.trx
reporter: dotnet-trx
- uses: actions/upload-artifact@v4
if: success() || failure()
with:
name: test-results
path: ${{ github.workspace }}/test-results.trx