Skip to content

Commit 0705ef0

Browse files
authored
Implement proposal stated in ADR for setup-dotnet v3 and functionality from feature request #219 (#315)
1 parent a351d9e commit 0705ef0

23 files changed

+5828
-5691
lines changed

.github/workflows/release-new-action-version.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
steps:
2323
- name: Update the ${{ env.TAG_NAME }} tag
2424
id: update-major-tag
25-
uses: actions/publish-action@v0.1.0
25+
uses: actions/publish-action@v0.2.0
2626
with:
2727
source-tag: ${{ env.TAG_NAME }}
28-
slack-webhook: ${{ secrets.SLACK_WEBHOOK }}
28+
slack-webhook: ${{ secrets.SLACK_WEBHOOK }}

.github/workflows/workflow.yml

Lines changed: 53 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
uses: ./
7979
with:
8080
dotnet-version: 3.1.201
81-
# We are including this veriable to force the generation of the nuget config file to verify that it is created in the correct place
81+
# We are including this variable to force the generation of the nuget config file to verify that it is created in the correct place
8282
source-url: https://api.nuget.org/v3/index.json
8383
env:
8484
NUGET_AUTH_TOKEN: NOTATOKEN
@@ -115,6 +115,30 @@ jobs:
115115
shell: pwsh
116116
run: __tests__/verify-dotnet.ps1 3.1 2.2
117117

118+
test-setup-prerelease-version:
119+
runs-on: ${{ matrix.operating-system }}
120+
strategy:
121+
fail-fast: false
122+
matrix:
123+
operating-system: [ubuntu-latest, windows-latest, macOS-latest]
124+
steps:
125+
- name: Checkout
126+
uses: actions/checkout@v3
127+
- name: Clear toolcache
128+
shell: pwsh
129+
run: __tests__/clear-toolcache.ps1 ${{ runner.os }}
130+
- name: Setup dotnet '2.2'
131+
uses: ./
132+
with:
133+
dotnet-version: '2.2'
134+
- name: Setup dotnet '3.1.100-preview1-014459'
135+
uses: ./
136+
with:
137+
dotnet-version: '3.1.100-preview1-014459'
138+
- name: Verify dotnet
139+
shell: pwsh
140+
run: __tests__/verify-dotnet.ps1 3.1.100-preview1-014459
141+
118142
test-setup-latest-patch-version:
119143
runs-on: ${{ matrix.operating-system }}
120144
strategy:
@@ -131,13 +155,13 @@ jobs:
131155
uses: ./
132156
with:
133157
dotnet-version: 3.1.x
134-
- name: Setup dotnet 2.2.x
158+
- name: Setup dotnet 2.2.X
135159
uses: ./
136160
with:
137-
dotnet-version: 2.2.x
161+
dotnet-version: 2.2.X
138162
- name: Verify dotnet
139163
shell: pwsh
140-
run: __tests__/verify-dotnet.ps1 3.1 2.2
164+
run: __tests__/verify-dotnet.ps1 '2.2' '3.1'
141165

142166
test-setup-with-wildcard:
143167
runs-on: ${{ matrix.operating-system }}
@@ -189,6 +213,31 @@ jobs:
189213
shell: pwsh
190214
run: __tests__/verify-dotnet.ps1 2.2 3.1
191215

216+
test-setup-with-dotnet-quality:
217+
runs-on: ${{ matrix.operating-system }}
218+
strategy:
219+
fail-fast: false
220+
matrix:
221+
operating-system: [ubuntu-latest, windows-latest, macOS-latest]
222+
steps:
223+
- name: Checkout
224+
uses: actions/checkout@v3
225+
- name: Clear toolcache
226+
shell: pwsh
227+
run: __tests__/clear-toolcache.ps1 ${{ runner.os }}
228+
229+
- name: Setup dotnet 7.0 with preview quality
230+
uses: ./
231+
with:
232+
dotnet-version: "7.0"
233+
dotnet-quality: "preview"
234+
- name: Verify preview version
235+
shell: pwsh
236+
run: |
237+
$version = & dotnet --version
238+
Write-Host "Installed version: $version"
239+
if (-not ($version.Contains("preview") -or $version.Contains("rc"))) { throw "Unexpected version" }
240+
192241
test-proxy:
193242
runs-on: ubuntu-latest
194243
container:

.licenses/npm/@actions/core.dep.yml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.licenses/npm/@actions/exec.dep.yml

Lines changed: 10 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.licenses/npm/@actions/http-client-1.0.8.dep.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

.licenses/npm/@actions/http-client-1.0.11.dep.yml renamed to .licenses/npm/@actions/http-client.dep.yml

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.licenses/npm/@actions/io.dep.yml

Lines changed: 10 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.licenses/npm/uuid.dep.yml

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)