updating workflows (#973)
* updating workflows * updating dotnet core workflow
This commit is contained in:
parent
a326550305
commit
b74194757f
|
|
@ -39,4 +39,4 @@ jobs:
|
|||
run: dotnet build --configuration Release --no-restore
|
||||
|
||||
- name: Test ${{ matrix.version }}
|
||||
run: dotnet test **/bin/**/${{ matrix.version }}/*.Tests.dll --configuration Release --no-build
|
||||
run: dotnet test **/bin/**/${{ matrix.version }}/*.Tests.dll --configuration Release --no-build --logger:"console;verbosity=detailed"
|
||||
|
|
|
|||
|
|
@ -29,4 +29,4 @@ jobs:
|
|||
run: dotnet build --configuration Release --no-restore
|
||||
|
||||
- name: Test ${{ matrix.version }}
|
||||
run: dotnet test **\bin\**\${{ matrix.version }}\*Tests.dll --configuration Release --no-build
|
||||
run: dotnet test **\bin\**\${{ matrix.version }}\*Tests.dll --configuration Release --no-build --logger:"console;verbosity=detailed"
|
||||
|
|
|
|||
|
|
@ -5,40 +5,24 @@ on:
|
|||
branches: [ master ]
|
||||
paths-ignore:
|
||||
- '**.md'
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
paths-ignore:
|
||||
- '**.md'
|
||||
|
||||
jobs:
|
||||
build-test-pack:
|
||||
build-pack:
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
os: [windows-latest, ubuntu-latest]
|
||||
os: [windows-latest]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0 # fetching all
|
||||
|
||||
- name: Setup .NET Core 2.1
|
||||
if: ${{ matrix.os == 'ubuntu-latest' }}
|
||||
uses: actions/setup-dotnet@v1
|
||||
with:
|
||||
dotnet-version: 2.1.807
|
||||
|
||||
- name: Setup .NET Core 3.1
|
||||
uses: actions/setup-dotnet@v1
|
||||
with:
|
||||
dotnet-version: 3.1.301
|
||||
|
||||
# For linux, we have to apply a workaround to enable both dotnet versions at same time
|
||||
- name: .net SxS
|
||||
if: ${{ matrix.os == 'ubuntu-latest' }}
|
||||
run: |
|
||||
rsync -a ${DOTNET_ROOT/3.1.301/2.1.807}/* $DOTNET_ROOT/
|
||||
dotnet-version: 3.1.x
|
||||
|
||||
- name: Install dependencies
|
||||
run: dotnet restore
|
||||
|
|
@ -46,9 +30,6 @@ jobs:
|
|||
- name: dotnet build
|
||||
run: dotnet build --configuration Release --no-restore -p:Deterministic=true
|
||||
|
||||
- name: dotnet test
|
||||
run: dotnet test -p:CollectCoverage=false --configuration Release --no-build --logger:"console;verbosity=detailed"
|
||||
|
||||
- name: dotnet pack
|
||||
run: dotnet pack OpenTelemetry.proj --configuration Release --no-build
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue