Skip to content

fix: workflows

fix: workflows #4

Workflow file for this run

name: .NET Tests

Check failure on line 1 in .github/workflows/dotnet-tests.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/dotnet-tests.yml

Invalid workflow file

(Line: 3, Col: 3): Unexpected value 'working-directory'
defaults:
working-directory: ./Parameterize.Net
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x # or the version your project targets
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore --configuration Release
- name: Run tests
run: dotnet test --no-build --verbosity normal
- name: Upload test results
uses: actions/upload-artifact@v4
with:
name: test-results
path: '**/TestResults/*.trx'