updating workflows (#973)

* updating workflows

* updating dotnet core workflow
This commit is contained in:
Eddy Nakamura 2020-08-02 11:40:29 -03:00 committed by GitHub
parent a326550305
commit b74194757f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 24 deletions

View File

@ -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"

View File

@ -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"

View File

@ -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