17 Commits

Author SHA1 Message Date
Sampark Sharma
0746965b72
Address review comments 2023-01-03 08:31:27 +00:00
Sampark Sharma
da162e46a8
Fix test 2022-12-29 12:45:11 +00:00
Sampark Sharma
ec3a87298b
Add cross os opt-in functionality for cache on windows 2022-12-29 12:45:10 +00:00
Sampark Sharma
4e74c1c052
Cache package release for compression change in windows
This reverts commit 86fe4abd8e89005bbd880c330af444ae4c7d3b15.
2022-12-29 12:44:52 +00:00
Sampark Sharma
86fe4abd8e
Revert "Cache package release for compression change in windows" (#1289)
* Revert "Cache package release for compression change in windows (#1281)"

This reverts commit b2287326447a6d61c109af734947c7608be85900.

* Update release version to patch
2022-12-27 16:00:28 +05:30
Sampark Sharma
b228732644
Cache package release for compression change in windows (#1281)
* bsd + zstd fallback implementation

* bsd + zstd fallback implementation

* Fix tar operations

* Add -v option for testing

* Fix order of args for tar

* Add GNUtar as default on windows

* Fix test

* Fix tar tests

* Fix lint issues

* Fix windows gnutar test case

* Temporarily remove thhe condition that prevents zstd usage on windows unless with GNUtar

* Address some comments and correct compression commands

* Add windows bsdtar test

* Fix windows test

* Fix test

* Separate args

* Fix old tests

* Add new tests

* Fix tests

* Fix lint test

* Refactor code

* Address review comments

* Fix test

* Fix tar test

* Add await to async function calls

* Fix test

* Update for beta release

* Fix audit issues

* Add fallback to gzip compression if cache not found

* Fix test

* Add test

* Address review comments

* Revert Address review comments

* Release 3.1.0-beta.2 cache package

* Fix issues

* Reconfigure catch block

* Add debug logging for gzip fall back

* Fix test

* Add end to end test for cache using bsd on windows
and address review comments

* Fix test

* Fix test

* Fix tests

* Add better comments

* Update packages/cache/src/internal/cacheHttpClient.ts

Co-authored-by: Bishal Prasad <bishal-pdmsft@github.com>

* Address review comments

* Update for new beta cache package release

* Address bugbash issues

* Fix tests

* Release new actions/cache minor version

Co-authored-by: Lovepreet Singh <pdotl@github.com>
Co-authored-by: Bishal Prasad <bishal-pdmsft@github.com>
2022-12-22 20:47:35 +05:30
Sampark Sharma
a735d9bcd4
Add logs for cache version on miss 2022-11-14 06:31:26 +00:00
Brian Cristante
aa676f3cc7
Update other packages to use http-client v2 (#1082)
We moved `@actions/http-client` to be part of the toolkit in https://github.com/actions/toolkit/pull/1062.  We also made some breaking changes to exported types and released v2.

The biggest change in terms of lines of code affected was to get rid of the `I-` prefix for interfaces since TypeScript doesn't follow this convention.

I bumped the patch version of all packages except for `tool-cache`, where I bumped the major version.  The rationale is explained in the release notes for that package.
2022-05-11 17:14:25 -04:00
Deepak Dahiya
f8a69bc473
Added cacheSize in ReserveCache API request (#1044)
* Added cacheSize in ReserveCache API request

* minor

* minor

* minor

* Cleanup

* package-lock revert

* Modified tests

* New Response Type

* cleanup

* Linting

* Lint fix

* Resolved comments

* Added tests

* package-lock

* Resolved package-lock mismatch

* Liniting

* Update packages/cache/src/cache.ts

Co-authored-by: Bishal Prasad <bishal-pdmsft@github.com>

* Linting issue

* Resolved few comments

* version upgrade

* Savecache tests

* RequestUtil test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

Co-authored-by: Apple <apple@Apples-MacBook-Pro.local>
Co-authored-by: Bishal Prasad <bishal-pdmsft@github.com>
2022-04-04 16:21:58 +05:30
Deepak Dahiya
03eca1b0c7
Revert "T dedah/cache size" (#1042) 2022-04-01 02:10:08 +05:30
Apple
6cd8286138 Resolved comments 2022-04-01 01:41:12 +05:30
Apple
3abbc6c24c Lint fix 2022-04-01 01:16:43 +05:30
Deepak Dahiya
daa24d7958 Linting 2022-03-31 10:41:54 +00:00
Deepak Dahiya
79acd5bac4 New Response Type 2022-03-31 09:42:59 +00:00
Deepak Dahiya
76ac2fcd59 Added cacheSize in ReserveCache API request 2022-03-29 22:17:04 +00:00
Aiqiao Yan
b3c8e19a7a Attempt to fix the test 2020-05-13 13:43:13 -04:00
Aiqiao Yan
932779cf58 Initial commit to create @actions/cache package 2020-05-12 12:02:18 -04:00