Skip to content

fix: workflows

fix: workflows #17

Workflow file for this run

name: .NET Tests
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 ./Parameterize.Net
- name: Build
run: dotnet build ./Parameterize.Net --no-restore --configuration Release
- name: Run tests
run: dotnet test ./Parameterize.Net --verbosity normal
- name: Upload test results
uses: actions/upload-artifact@v4
with:
name: test-results
path: '**/TestResults/*.trx'