Skip to content

the default path constraint is True #54

the default path constraint is True

the default path constraint is True #54

Workflow file for this run

# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: .NET
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
cache: true
cache-dependency-path: '**/packages.lock.json'
- name: Restore dependencies
run: dotnet restore dnWalker.sln --locked-mode
- name: Build
run: dotnet build --no-restore dnWalker.sln
- name: Build examples (release mode)
run: dotnet build Examples/Examples.csproj --configuration Release
- name: Test
run: dotnet test --no-build --logger trx --results-directory TestResults --verbosity normal -p:TestTfmsInParallel=false dnWalker.sln
- name: Upload dotnet test results
uses: actions/upload-artifact@v4
with:
name: dotnet-results
path: TestResults
if: ${{ always() }}
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
files: |
TestResults/**/*.trx
/tmp/MSBuildTemprunner/*.txt