You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by bl...@apache.org on 2020/10/08 12:05:52 UTC
[pulsar-dotpulsar] branch master updated: Fix CI (#60)
This is an automated email from the ASF dual-hosted git repository.
blankensteiner pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar-dotpulsar.git
The following commit(s) were added to refs/heads/master by this push:
new 2b9c10d Fix CI (#60)
2b9c10d is described below
commit 2b9c10dc6b4705da7358db2d99cc924c18ad674b
Author: Aaron Robert <Ro...@outlook.com>
AuthorDate: Thu Oct 8 20:05:43 2020 +0800
Fix CI (#60)
* Fix ci.
* Use sepcificed dotnet version
* Use side by side testing
* Use '2.2.x' version for dotnet 2
---
.github/workflows/ci-unit.yaml | 21 ++++-----------------
1 file changed, 4 insertions(+), 17 deletions(-)
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 @@ jobs:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
- - name: set up dotnet 3
+ - name: Setup dotnet 2
uses: actions/setup-dotnet@v1
with:
- dotnet-version: '3.1.x'
+ dotnet-version: '2.2.x'
- - name: set up dotnet 2
+ - name: Setup dotnet 3
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;
- }
+ dotnet-version: '3.1.x'
- name: run unit tests
run: dotnet test ./tests/DotPulsar.Tests/DotPulsar.Tests.csproj --logger "trx;verbosity=detailed"