Skip to content

Add GitHub Action to run tests on PRs #10

Add GitHub Action to run tests on PRs

Add GitHub Action to run tests on PRs #10

Workflow file for this run

name: pr-validation
on: pull_request
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '3.1.x'
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '5.x'
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '6.x'
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '7.x'
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.x'
- run: dotnet build DacFx.sln
- run: dotnet pack DacFx.sln
- run: dotnet test DacFx.sln -f netcoreapp3.1
- run: dotnet test DacFx.sln -f net5.0
- run: dotnet test DacFx.sln -f net6.0
- run: dotnet test DacFx.sln -f net7.0
- run: dotnet test DacFx.sln -f net8.0