19 Commits

Author SHA1 Message Date
Miron Costant
ad69d83e01 migrate from Jest to Vitest 2024-03-27 14:18:22 -04:00
Jacob Hands
b61ca413d8
fix: Add runner architecture to cache key (#37)
This will prevent cache issues when switching platforms
2024-02-20 11:50:55 -08:00
Gaëtan Lehmann
be3fe0c1f8
fix post-if usage (#28) 2023-09-01 10:23:39 -07:00
Alex Couture-Beil
57036aa8e1
display attempted URL download as info
This makes it more clear if we get to the point where a download is
attempted or not.

Signed-off-by: Alex Couture-Beil <alex@earthly.dev>
2023-04-12 12:21:24 -07:00
Gaëtan Lehmann
cce953f2ea
fix for strict version with the v prefix (#21) 2023-03-01 16:06:10 -08:00
Gaëtan Lehmann
afedd8a454
don't use the api for strict version (#18) 2023-02-22 12:31:17 -08:00
Alex Couture-Beil
c406dd71d6
filter out prerelease versions (#17)
Introduces a new prerelease input, which defaults to "false";
prereleased versions will only ever be installed when set to "true".

Signed-off-by: Alex Couture-Beil <alex@earthly.dev>
2023-01-19 10:31:23 -08:00
rlaforge
79c1a7ec26
[ci]: Check if there was a cache hit before checking for cache directory (#9)
* [ci]: check if cache exists after checking for hit
2022-10-03 13:58:25 -06:00
Ryan LaForge
e3f7fe0dda Revert "[fix]: if the path does not exist log an error rather than crashing"
This reverts commit 8add1f625b25e646835e9e3819033ec772f1d031.
2022-09-23 14:27:07 -06:00
Ryan LaForge
8add1f625b [fix]: if the path does not exist log an error rather than crashing 2022-09-23 13:02:52 -06:00
rlaforge
c2d4f803a6
Fix arch is undefined, update tests, and allow manual invocation of action (#8)
* [ci]: Add workflow_dispatch event to allow running manually

* [fix]: update jest snapshots to latest version

* [ci]: Add GitHub token when running CI

* [fix]: update test to new format of earthly version command

* [chore]: run earthly +compile

* [fix]: try swapping back to amd64

* [ci]: make all checkout actions use the token

* [revert]: undo change to .gitignore

* [revert]: Remove snapshot tests and use semver comparison instead

* [ci]: patch version regexp

* [chore]: actually use the version string

* [ci]: add GITHUB_TOKEN env variable to prevent rate limiting

* [test]: ensure we are checking for less than as well
2022-09-20 17:00:53 -06:00
Kevin Schoonover
a32f779fcc add 3-tier caching 2022-04-20 18:42:21 -07:00
Kevin Schoonover
1d702cebee
add runner caching (#1) 2022-04-20 18:32:57 -07:00
Kevin Schoonover
e8568123f6 latest updates 2022-04-18 18:30:58 -07:00
Kevin Schoonover
f5f9ecd12e remove copy to fix windows 2022-03-27 20:28:52 -07:00
Kevin Schoonover
0b4e93eb4b append .exe on windows downloads 2022-03-27 20:20:05 -07:00
Kevin Schoonover
0aed17094f attempt to fix promises error 2022-03-27 20:10:53 -07:00
Kevin Schoonover
2add3a58cb initial commit 2022-03-27 19:48:50 -07:00
Alex Couture-Beil
f5d881f515
move setup-earthly code into root
This is to allow the action to be published
to the github marketplace.

Signed-off-by: Alex Couture-Beil <alex@earthly.dev>
2022-03-10 12:12:08 -08:00