Skip to content

Commit

Permalink
Clean up .NET SDK installation
Browse files Browse the repository at this point in the history
  • Loading branch information
patriksvensson committed Dec 15, 2021
1 parent 8fcd2e5 commit 19ff48f
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 48 deletions.
21 changes: 7 additions & 14 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ jobs:
- name: Checkout
uses: actions/checkout@master

- name: Setup dotnet 5 and 6.0.100
- name: Setup .NET SDK
uses: actions/setup-dotnet@v1
with:
dotnet-version: |
5.0.x
5.0.301
6.0.100
- name: Setup Node.js
Expand Down Expand Up @@ -76,20 +76,13 @@ jobs:
with:
fetch-depth: 0

- name: Setup dotnet 3.1.402
- name: Setup .NET SDK
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.402

- name: Setup dotnet 5.0.301
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.301

- name: Setup dotnet 6.0.100
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.100
dotnet-version: |
3.1.402
5.0.301
6.0.100
- name: Integration Tests
shell: bash
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@ jobs:
with:
fetch-depth: 0

- name: Setup dotnet 6.0.100
- name: Setup .NET SDK
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.100
dotnet-version: |
5.0.301
6.0.100
- name: Setup Node.js
uses: actions/setup-node@v2
Expand Down
46 changes: 14 additions & 32 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,12 @@ jobs:
- name: Checkout
uses: actions/checkout@master

- name: Setup dotnet 5.0.301
- name: Setup .NET SDK
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.301

- name: Setup dotnet 6.0.100
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.100
dotnet-version: |
5.0.301
6.0.100
- name: Build
shell: bash
Expand Down Expand Up @@ -68,20 +65,13 @@ jobs:
with:
fetch-depth: 0

- name: Setup dotnet 3.1.402
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.402

- name: Setup dotnet 5.0.301
- name: Setup .NET SDK
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.301

- name: Setup dotnet 6.0.100
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.100
dotnet-version: |
3.1.402
5.0.301
6.0.100
- name: Build
shell: bash
Expand All @@ -104,21 +94,13 @@ jobs:
with:
fetch-depth: 0

- name: Setup dotnet 3.1.402
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.402

- name: Setup dotnet 5.0.301
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.301

- name: Setup dotnet 6.0
- name: Setup .NET SDK
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
include-prerelease: true
dotnet-version: |
3.1.402
5.0.301
6.0.100
- name: Publish
shell: bash
Expand Down

0 comments on commit 19ff48f

Please sign in to comment.