Skip to content

Merge pull request #92 from mpewsey/fix #456

Merge pull request #92 from mpewsey/fix

Merge pull request #92 from mpewsey/fix #456

Workflow file for this run

name: Tests
on:
push:
branches: [ main ]
paths:
- '**.cs'
- '**.csproj'
- '**.sln'
- '.github/workflows/**'
pull_request:
branches: [ main ]
paths:
- '**.cs'
- '**.csproj'
- '**.sln'
- '.github/workflows/**'
jobs:
unit-tests:
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- uses: actions/cache@v2
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
restore-keys: |
${{ runner.os }}-nuget-
- name: Restore dependencies
run: dotnet restore ".\src"
- name: Build
run: dotnet build ".\src" --configuration Release --no-restore
- name: Test
run: dotnet test ".\src" --no-restore --verbosity normal