fixed the problem unit tests were not found in windows #349
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: build | |
on: | |
push: | |
branches: | |
- master | |
- 2refactory | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
- windows-latest | |
- macos-latest | |
runs-on: ${{matrix.os}} | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Install libmsquic | |
if: runner.os == 'Linux' | |
run: | | |
sudo apt-get update | |
sudo apt-get -y install libmsquic | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: '8.0.x' | |
- name: Set env | |
run: | | |
echo "DOTNET_CLI_TELEMETRY_OPTOUT=1" >> $GITHUB_ENV | |
echo "DOTNET_hostBuilder:reloadConfigOnChange=false" >> $GITHUB_ENV | |
- name: Clean | |
run: | | |
dotnet clean ./SuperSocket.sln --configuration Release | |
dotnet clean ./samples/samples.sln --configuration Release | |
dotnet nuget locals all --clear | |
- name: Build | |
run: dotnet build -c Release | |
- name: Build Samples | |
run: dotnet build -c Release samples/samples.sln | |
- name: Test - Linux | |
if: runner.os == 'Linux' | |
run: | | |
cd test/SuperSocket.Tests | |
dotnet test | |
- name: Test - macOS | |
if: runner.os == 'macOS' | |
run: | | |
cd test/SuperSocket.Tests | |
dotnet test --filter FullyQualifiedName\!~TestQuicSupport | |
- name: Test - Windows | |
if: runner.os == 'Windows' | |
run: | | |
cd test/SuperSocket.Tests | |
dotnet test --filter FullyQualifiedName!~TestQuicSupport |