Skip to content

Commit

Permalink
Install 2.1 runtime to fix build
Browse files Browse the repository at this point in the history
Also separates build and test to more obviously show which one failed.
  • Loading branch information
heaths committed Aug 10, 2020
1 parent 61a7257 commit 4750423
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,22 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-dotnet@v1
with:
dotnet-version: '2.1.808'
dotnet-version: '3.1.x'

- name: install additional dependencies
run: sudo apt-get install -y dotnet-runtime-2.1

- name: build
run: >
dotnet build KeyVaultProxy.sln
-c Release -o bin/Release
- id: test
name: test
run: >
dotnet test KeyVaultProxy.sln
-c Release -o bin/Release
--no-build
-l trx -r bin/Release/TestResults/${{ matrix.platform }}
env:
DOTNET_CLI_TELEMETRY_OPTOUT: 1
Expand All @@ -56,12 +66,13 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-dotnet@v1
with:
dotnet-version: '2.1.808'
dotnet-version: '3.1.x'
source-url: https://nuget.pkg.github.com/heaths/index.json
env:
NUGET_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- run: >
- name: pack
run: >
dotnet pack KeyVaultProxy.sln
-c Release -o bin/Release
--version-suffix 'preview.${{ github.run_number }}'
Expand All @@ -75,5 +86,6 @@ jobs:
name: artifacts
path: bin/Release/*.nupkg

- run: dotnet nuget push bin/Release/*.nupkg
- name: publish
run: dotnet nuget push bin/Release/*.nupkg
if: github.ref == 'refs/heads/master' && github.event_name == 'push'

0 comments on commit 4750423

Please sign in to comment.