Commit Graph

132 Commits

Author SHA1 Message Date
Kamron Batman
186fc9ae17 Resolve global.json latestMajor to the newest active release instead of LTS (#803)
* Resolve global.json latestMajor to the newest active release, not LTS

rollForward: latestMajor cleared the version, which createChannelArgument mapped to the LTS channel. When the declared sdk.version belongs to an STS release, the LTS channel is older than the declared version and the installed SDK does not satisfy global.json. Resolve it from the releases index to the newest active release of either support type, still GA only.

* Limit latestMajor resolution to global.json and enforce the minimum version

An empty version without rollForward latestMajor (for example a global.json
without sdk.version) resolves to the LTS channel again. After an online
install, the action fails if the installed SDK is older than the global.json
minimum version. The installer tests now mock the releases index instead of
calling the live service.
2026-11-30 11:28:00 -06:00
v-mahabaleshwars
84bc3a3451 Add support for installing .NET runtimes alongside SDKs (#806)
* Add support for installing .NET runtimes alongside SDKs

* Add tests for preview runtime pairing and fallback logic in installer
2026-11-20 08:13:57 -06:00
Priya Gupta
6ec5c6b286 Add fallback install directory when default is not writable (#785)
* Add fallback install directory when default is not writable

* Refactor macOS install directory handling to warn when default is not writable
2026-10-30 08:13:43 -05:00
Chiranjib Swain
349aa191ae Add skip-lts-prepass input to optimize .NET SDK installation process (#791)
- Introduced `skip-lts-prepass` input to allow users to skip the LTS runtime pre-pass during installation.
- Updated documentation to explain the new input and its usage.
- Enhanced tests to verify the behavior of the `skip-lts-prepass` functionality.

Co-authored-by: chiranjib-swain <chiranjib-swain@github.com>
2026-10-21 16:53:54 -05:00
v-mahabaleshwars
074373ff88 Add check-latest input to reuse a locally installed .NET SDK and skip network calls (#774)
* check-latest-input feature implemented

* e2e test update

* e2e-tests.yml updated

* update documentation

* fix: align local SDK matching with the online resolver

* implement review comments

* implement review comments

* implement review comments

* implement review comments

* implement review comments

* implement review comments

* implement review comments

---------

Co-authored-by: mahabaleshwars <147705296+mahabaleshwars@users.noreply.github.com>
2026-09-28 09:46:01 -05:00
dependabot[bot]
9b203d2b06 Bump browserslist from 4.28.2 to 4.28.8 (#781)
* Bump browserslist from 4.28.2 to 4.28.8

Bumps [browserslist](https://github.com/browserslist/browserslist) from 4.28.2 to 4.28.8.
- [Release notes](https://github.com/browserslist/browserslist/releases)
- [Changelog](https://github.com/browserslist/browserslist/blob/main/CHANGELOG.md)
- [Commits](https://github.com/browserslist/browserslist/compare/4.28.2...4.28.8)

---
updated-dependencies:
- dependency-name: browserslist
  dependency-version: 4.28.8
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* feat: add support for .NET 11.0 in verify-dotnet script and update package-lock.json for peer dependencies

* Revert "feat: add support for .NET 11.0 in verify-dotnet script and update package-lock.json for peer dependencies"

This reverts commit b7ba059f41.

* feat: add support for .NET 11.0 in verify-dotnet script and update js-yaml version in package-lock.json

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: priya-kinthali <priya-kinthali@github.com>
Co-authored-by: priyagupta108 <priyagupta108@github.com>
2026-09-15 16:27:47 -05:00
Priya Gupta
6df8cefd14 Migrate to ESM and upgrade dependencies (#752)
* Migrate to ESM and upgrade dependencies

* Address review: use type-only import for QualityOptions

* update version to 6.0.0 in package.json and package-lock.json

* Add ESM migration note to README for V6

* Update test imports for ESM and clean up devDependencies (ts-node, @types/jest)

* Pin @types/node to 24.x and refine tsconfig/README wording
2026-07-15 15:41:57 -05:00
Stephen Cleary
26b0ec14cb Expand the CSC problem matcher to light up more errors on GitHub. (#717)
Expand csc problem matcher with more real-world scenarios.

Co-authored-by: Stephen Cleary <900597+StephenCleary@users.noreply.github.com>
2026-06-25 14:00:19 -05:00
Jason Ginchereau
4406a635cd Bump @actions/cache to 5.1.0, log cache write denied (#746)
* Bump @actions/cache to 5.1.0, log cache write denied

* Add cache save failure test case

* Update dist

* Resolve high-severity audit issues
2026-06-22 13:33:08 -05:00
js6pak
98af08bf64 Support global.json's rollForward latest* variants (#538)
* Rename toolcache directory instead of moving to tmp

This further enhances time savings seen in #213, down from a few minutes to seconds.

* Remove branch constraint on workflows used for testing

This means you are going to be notified of CI issues quicker, especially if you have to wait for a confirmation before running the workflows on your PR.

* Support global.json's rollForward latest* variants

* Remove e2e-test's dependency on Microsoft.NET.Test.Sdk

The newer versions are net8.0/net462+ only, making older .NET sdks more annoying to test

* Revert "Remove e2e-test's dependency on Microsoft.NET.Test.Sdk"

This reverts commit 14839a662649cdea79ccecc3a7ce9a91386185b4.

* Don't run unsupported versions in global.json tests

* Revert "Remove branch constraint on workflows used for testing"

This reverts commit d9dae35030.
2026-05-26 17:43:27 -05:00
mahabaleshwars
af9211b136 Add dotnet-version: latest support with dotnet-channel input (#730)
* feat: add dotnet-version: latest keyword with dotnet-channel support (#497)

* restore test-proxy container image

* update e2e-tests.yml and documentation

* fix(tests): correct release-type and support-phase values in latest-version test mocks
2026-04-27 13:24:18 -05:00
priya-kinthali
02574b18e2 Add support for optional architecture input for cross-architecture .NET installs (#700)
* fix basic validation with npm command

* Revert "fix basic validation with npm command"

This reverts commit 27a0803a2a.

* add architecture support

* updated installdir logic

* update architecture resolution

* update normalizeArch
2026-02-26 13:17:54 -06:00
priya-kinthali
baa11fbfe1 Bump test dependencies to resolve System.Net.Http vulnerability, update workflows and README (#692)
* update test deps, workflows, and docs for latest versions

* fix wording

* update versions
2026-01-13 17:07:38 -06:00
gowridurgad
0f55b457d2 removes end-of-line dotnet versions (#647)
Co-authored-by: “gowridurgad” <“hgowridurgad@github.com>
2025-06-24 11:36:43 -05:00
HarithaVattikuti
4d6c8fcf3c Upgrade Node to v20 (#484)
* Node Version upgrade to 20

* 4.0.0

* Action Files upgrade to 20

* Updated version for outdated

* Update Format check

* Auth Test file update
2023-12-04 19:47:27 +05:30
Nikolai Laevskii
6eb2af61b6 Update tests to accomodate for changes 2023-05-31 11:21:34 +02:00
Nikolai Laevskii
6019612129 Merge remote-tracking branch 'github/main' into refactor-installer 2023-05-31 11:18:52 +02:00
Nikolai Laevskii
427804d76a Update tests 2023-05-30 12:45:38 +02:00
Nogic
3447fd6a9f feat: Cache NuGet global-packages folder (#303)
* feat: cache NuGet global-packages folder

* fix: remove unused files

* docs: fix incorrect action

* ci: add e2e test for cache

* docs: accept suggested changes on README

* docs: add simple cache example

* build: change main script path

* fix: change relative path to install scripts

* fix: change relative path to problem matcher

* refactor: accept changes on cache-utils

* fix: revert main script path changes

* test: fix cache-utils unit test

* test: fix cache-utils unit test

* feat: add `cache-dependency-path` variables

* build: change main script dist path

* ci: add `cache-dependency-path` e2e test & missing lock file

* fix: accept change suggestions

* ci: copy NuGet lock file to root

to pass "test-setup-with-cache" e2e test

* docs: change README guide

* fix: apply suggestions from code review

Co-authored-by: Ivan <98037481+IvanZosimov@users.noreply.github.com>

* test: fix some failed unit tests

- fix `restoreCache()` test for 9703c8
- update installer script

* build: rebuild dist

* Update unit-tests
- Additional unit test were added to setup-dotnet.test.ts

* Update unit tests for unix systems

* Format and lint unit tests

* fix: avoid use '/' on `path.join`

* fix: rebuild dist

* fix: apply suggestions from code review

Co-authored-by: Ivan <98037481+IvanZosimov@users.noreply.github.com>

* build: add `DisableImplicitNuGetFallbackFolder` option

also add guide on README

* docs: highlight warnings and notes

* docs: update note about handling NU1403

---------

Co-authored-by: Ivan <98037481+IvanZosimov@users.noreply.github.com>
Co-authored-by: IvanZosimov <ivanzosimov@github.com>
2023-05-29 12:43:18 +02:00
Nikolai Laevskii
5c7ae4f903 Apply consistent naming 2023-05-24 16:59:05 +02:00
IvanZosimov
b891376106 Merge branch 'main' into add-latest-patch-syntax 2023-05-22 12:29:35 +02:00
IvanZosimov
b05a3f26b3 Fix review points, rebuild solution 2023-05-22 12:27:33 +02:00
Nikolai Laevskii
5fdecd2063 Increase amount of retries for Dotnet installation scripts tests (#427)
* Increase amount of retries for Dotnet installation scripts tests

* Format: Increase amount of retries for Dotnet installation scripts tests
2023-05-19 08:50:54 +02:00
IvanZosimov
38b49fb717 Fix informational and debug messages 2023-05-18 12:39:22 +02:00
IvanZosimov
83a1653fa3 Update regular expresiion for isLatestPatchSyntax() 2023-05-18 11:46:40 +02:00
IvanZosimov
2f028bc044 update unit and e2e tests 2023-05-18 11:11:51 +02:00
IvanZosimov
e8501859aa Update unit tests 2023-05-15 14:24:28 +02:00
IvanZosimov
426d75d071 Merge branch 'main' into add-latest-patch-syntax 2023-05-15 14:13:18 +02:00
Ivan
0f534f5829 Refactor and update unit-tests (#418)
* Update unit-tests and dotnet-install scripts
2023-05-15 14:09:29 +02:00
IvanZosimov
c5a57b219c Update unit-tests 2023-05-05 10:44:54 +02:00
IvanZosimov
6adeb768ce Update docs 2023-05-05 10:43:09 +02:00
Ivan
fc8786b149 Update e2e tests and e2e test infrastructure (#414) 2023-04-20 14:42:27 +02:00
IvanZosimov
e0a32d6459 Merge branch 'update-e2e-tests' into add-latest-patch-syntax 2023-04-19 16:43:50 +02:00
IvanZosimov
255362be61 Silent dotnet new globaljson command 2023-04-19 16:32:38 +02:00
IvanZosimov
50b46b3b1d Update verify-dotnet.ps1 2023-04-19 16:24:27 +02:00
IvanZosimov
e8ac21d503 Fix typos 2023-04-19 15:41:28 +02:00
IvanZosimov
180a15970f Update e2e test infrastructure 2023-04-19 13:40:44 +02:00
IvanZosimov
b72f430d36 Update e2e tests 2023-04-13 17:28:59 +02:00
IvanZosimov
34c30d0e81 Refactor logic 2023-04-12 15:44:03 +02:00
IvanZosimov
5f570676c2 Add unit and e2e tests 2023-04-11 15:53:11 +02:00
Othmane KINANE
1d9f0dad5b Accept absolute paths for 'global-json-file' input (#396) 2023-03-13 12:34:56 +01:00
Ivan
c82240598b Add and configure ESLint and update configuration for Prettier (#391)
* Apply ESLint config and update Prettier

* Update dependencies and rebuild

* Update docs
2023-03-09 14:43:05 +02:00
IvanZosimov
11aaa65761 Fix review points 2022-12-20 16:24:40 +01:00
Ivan
4d4a70f4a5 Add logic for processing DOTNET_INSTALL_DIR environment variable (#332) 2022-10-10 14:27:29 +02:00
Ivan
c7e7147fd3 Add ability to write resolved version of SDK into the output variable (#324) 2022-09-29 17:45:25 +02:00
Ivan
0705ef0281 Implement proposal stated in ADR for setup-dotnet v3 and functionality from feature request #219 (#315) 2022-09-27 14:47:12 +02:00
Nogic
c2dac7f367 test: add include-prerelease env on test 2022-07-31 23:27:05 +00:00
La'Kaleigh Harris
550702114f Support multiple versions in single invocation (#240) 2021-11-23 13:03:56 +03:00
Vladimir Safonkin
f3822c3b02 Prettier 2021-08-20 17:13:23 +03:00
Vladimir Safonkin
5e45b4b591 Remove hardcoded patch version from unit test 2021-08-20 17:11:48 +03:00