Skip to content

Add dotnet 7.0, 8.0 to build strategy #95

Add dotnet 7.0, 8.0 to build strategy

Add dotnet 7.0, 8.0 to build strategy #95

name: dotnet package
on: [push, pull_request]
jobs:
build:
runs-on: windows-latest
strategy:
matrix:
dotnet-version: [6.0, 7.0, 8.0]
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Setup .NET Core SDK ${{ matrix.dotnet-version }}
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ matrix.dotnet-version }}
- name: Add msbuild to PATH
uses: microsoft/[email protected]
- name: Setup Nuget
uses: NuGet/[email protected]
- name: Restore dependencies
run: nuget restore SqlFormatter.sln
- name: Check format
run: dotnet format --verify-no-changes
- name: Build
run: dotnet build
- name: Test
run: dotnet test