Fix CI (#60)
* Fix ci.
* Use sepcificed dotnet version
* Use side by side testing
* Use '2.2.x' version for dotnet 2
diff --git a/.github/workflows/ci-unit.yaml b/.github/workflows/ci-unit.yaml
index 55a39bc..9e788de 100644
--- a/.github/workflows/ci-unit.yaml
+++ b/.github/workflows/ci-unit.yaml
@@ -37,28 +37,15 @@
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
- - name: set up dotnet 3
- uses: actions/setup-dotnet@v1
- with:
- dotnet-version: '3.1.x'
-
- - name: set up dotnet 2
+ - name: Setup dotnet 2
uses: actions/setup-dotnet@v1
with:
dotnet-version: '2.2.x'
- - name: set up dotnet SxS
- shell: pwsh
- run: |
- $version = Split-Path (Split-Path $ENV:DOTNET_ROOT -Parent) -Leaf;
- $root = Split-Path (Split-Path $ENV:DOTNET_ROOT -Parent) -Parent;
- $directories = Get-ChildItem $root | Where-Object { $_.Name -ne $version };
- foreach ($dir in $directories) {
- $from = $dir.FullName;
- $to = "$root/$version";
- Write-Host Copying from $from to $to;
- Copy-Item "$from\*" $to -Recurse -Force;
- }
+ - name: Setup dotnet 3
+ uses: actions/setup-dotnet@v1
+ with:
+ dotnet-version: '3.1.x'
- name: run unit tests
run: dotnet test ./tests/DotPulsar.Tests/DotPulsar.Tests.csproj --logger "trx;verbosity=detailed"