Skip to content

User defined classes #8129

User defined classes

User defined classes #8129

Workflow file for this run

name: 'Run tests'
on:
workflow_dispatch:
push:
paths:
- 'src/**'
pull_request:
paths:
- 'src/**'
env:
DOTNET_VERSION: '8.0.x' # The .NET SDK version to use
CONFIGURATION: 'Release' # The configuration to use
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
tests:
name: tests-${{matrix.os}}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node.js environment
uses: actions/[email protected]
with:
node-version: 18
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Build and test
shell: pwsh
run: |
./scripts/install_toolchain.ps1 ./examples
dotnet restore ./src
dotnet build ./src --configuration ${{ env.CONFIGURATION }} --no-restore
dotnet test ./src --no-build --filter 'FullyQualifiedName!~Draco.Examples.Tests'
cd ./src/Draco.Examples.Tests
dotnet test --no-build
cd ../..