Commit Graph

37 Commits

Author SHA1 Message Date
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
IvanZosimov b05a3f26b3 Fix review points, rebuild solution 2023-05-22 12:27:33 +02:00
IvanZosimov 38b49fb717 Fix informational and debug messages 2023-05-18 12:39:22 +02:00
IvanZosimov 2f028bc044 update unit and e2e tests 2023-05-18 11:11:51 +02:00
IvanZosimov 21cf89aa73 Remove commented lines of code 2023-05-16 15:13:18 +02:00
IvanZosimov fefaa59d2e update logic of outputting dotnet-version 2023-05-16 14:58:18 +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
Theodore Tsirpanis 9984a6fa87 Warn if the action ends up not installing any .NET version. 2022-11-14 19:58:22 +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 ba5e53c61d refactor: use core.getBooleanInput() 2022-07-31 23:27:05 +00:00
Owen Smith f078482971
add global-json-file input (#276)
* support specifying global.json location with global-json-file input

* add test workflow jobs for global.json usage

* fix typo in global-json-file description

Co-authored-by: Brian Cristante <33549821+brcrista@users.noreply.github.com>

Co-authored-by: Brian Cristante <33549821+brcrista@users.noreply.github.com>
2022-04-18 08:25:56 -04:00
Adam Ralph c20f59e04a
Avoiding installing the same version multiple times (#252) 2021-12-29 14:07:42 +03:00
La'Kaleigh Harris 550702114f
Support multiple versions in single invocation (#240) 2021-11-23 13:03:56 +03:00
Vladimir Safonkin b2cf6c7cd4 Handle only latestFeature option 2021-08-30 17:27:01 +03:00
Vladimir Safonkin 33fad1d142 Format code 2021-08-20 17:28:30 +03:00
Vladimir Safonkin 2c3efd1f04 Improve condition 2021-08-20 17:28:10 +03:00
Vladimir Safonkin 078f7c4a73 Format code 2021-08-20 15:44:47 +03:00
Vladimir Safonkin 13fd5bf191 Support rollForward option from global.json 2021-08-20 15:43:49 +03:00
Maxim Lobanov 7b2009794e
Merge pull request #110 from GGG-KILLER/feature/include-prerelease
Include include-prerelease option to be able to match latest prerelease versions
2021-05-05 15:53:38 +03:00
Sergey Dolin bd485b6bd1 Add workaround to fix BOM-related error during parsing global.json 2021-04-28 13:43:02 +05:00
GGG KILLER 768b4eb7db Implement passing includePrerelase to semver 2021-02-19 13:33:36 -03:00
Matt Alioto 8388fb6ff7 Reword comment & finish deprecation of old version argument 2020-05-29 20:01:32 -04:00
Zachary Eisinger 308b9ff32c Prettier and update bash 2020-05-15 14:21:50 -07:00
Zachary Eisinger a0982bfd3a Merge remote-tracking branch 'origin/master' into global-json 2020-05-15 14:04:07 -07:00
Zachary Eisinger 0f6f11a751 Remove warning on master branch 2019-12-20 07:46:09 -08:00
Stanley Goldman 474fe34688
Merge branch 'master' into master 2019-11-08 17:15:28 +01:00
Zachary Eisinger e1b1954735
Warn on master (#45)
Add warning message when running on master
2019-10-24 13:32:42 -07:00
Alex Mullans 70528ac007 Support for non-GPR sources 2019-10-03 17:29:44 -07:00
Alex Mullans 6bd4969ec6 GPR authentication support 2019-10-03 16:35:25 -07:00
Danny McCormick 553ff3fdfc
Merge branch 'master' into global-json 2019-08-14 10:01:21 -04:00
Danny McCormick fe9489df58
Use dotnet-version (#16) 2019-08-13 16:05:52 -04:00
Danny McCormick db362d751e Feedback 2019-08-12 12:14:43 -04:00
Danny McCormick 3280df5864 Fallback to global.json if no version specified 2019-08-12 10:51:47 -04:00
Danny McCormick 211f0312b0
Add C# problem matcher (#2)
* Add c# problem matcher

* ##[add-matcher]
2019-06-21 09:44:33 -04:00
Danny McCormick 187843cd79
Add installer (#1)
* Add installer

* Add tests

* install-dotnet script should be in externals

* merge

* Fix tests

* Fix naming

* Clean up

* Feedback
2019-06-21 08:21:08 -04:00