fixed special name logic #8061
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/setup-node@v3.5.1 | |
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 ../.. |