Commit Graph

190 Commits

Author SHA1 Message Date
Paulo F. Oliveira 9283f857f1 Improve warning message for missing ImageOS env. variable (self-hosted runners) (#59) 2021-07-12 18:35:08 +01:00
Paulo F. Oliveira 830642517c Improve visibility (+ fix bugs) over version-type and opt-in versions (#57)
(and tweak README regarding action versioning)
2021-07-09 10:11:50 +01:00
Paulo F. Oliveira d8a37f5aac Improve on "Add Windows to the mix" (#52)
* Support more OTP+Windows versions (try to bridge the gap with gleam-lang/setup-erlang that seems to support pre-21 versions)
* Merge ci.yml and test.yml
* Add Elixir to the Windows mix
* Hopefully improve error/warning messages
* Adapt the doc.s to the current reality
* Add option version-type (loose by default, for compatibility)
2021-07-08 15:35:25 +01:00
Paulo F. Oliveira 82b4475ba2 Add Windows to the mix (#49) 2021-06-24 21:58:51 +01:00
Paulo F. Oliveira 11d59b146c Allow for latest 100 rebar3 versions when fetching from GitHub (#42) 2021-05-27 20:28:05 -05:00
Wojtek Mach e332dc64ad Change how we print installed Elixir version (#36) 2021-05-26 13:29:59 +02:00
Paulo F. Oliveira b50aa18219 v1.7.1 (#35) 2021-05-15 00:29:16 +01:00
Paulo F. Oliveira a550a4c889 Coerce non-semver into semver (#34) 2021-05-15 00:07:41 +01:00
Paulo F. Oliveira 1f3954e2a3 Reduce size of dist (#26) 2021-03-31 19:18:27 +01:00
Paulo F. Oliveira 0b481810f8 Apply stricter linting (#24) 2021-03-30 21:58:09 +01:00
Paulo F. Oliveira 89cb00455a Introduce rebar-version (#9)
Previously (Remove redundant code) (+27 squashed commits)
Squashed commits:
[0b79c31] Rename as setup-beam
[312b42b] Simplify platform verification
[b43ca96] Prevent use of OTP- prefixed Erlang/OTP versions
[103a236] Move the promise-based approach to an async-based approach

(not testing for failure, so not guaranteeing readable/usable output either)
[1e7f631] Remove local test files
[d03e0c6] Prevent use of -otp- infixed Elixir versions
[697110e] Have versions output in action, not just in tests
[7360781] Ease test validations
[71e6999] Reinstall tests that were there before
[6602f20] Attempt at simplifying regexp matching with build listings
[09247af] Provide for an Elixir to "not OTP" fallback mechanism

(as explained by the comments)
[dfc4083] Attempt at renaming for clarity

We also get rid of return values when not reachable
We also move the `-otp-` part of the Elixir version upstream so it's easy to reason about
  (and update the tests accordingly)
[0d4eb28] Bump our dep.s

(trying to figure out why core.setFailed isn't making the action fail, as it should)
[ebf48ef] Have action fail (with an exception) when no expected version is found

(we otherwise feel that a simple warning is not enough, as it may end up hiding potential bugs)
[8478364] Adapt tests to our actual inputs
[16ea63d] Add prettier again, now sync'ed with jslint

(pass it on the code, already)
[cfc65df] Improve error messages and tests
[a017948] Test unavailable Elixir upon mix
[7f2a3e9] Test failing installations

Also output core.error when expected
[08061ca] Attempt at making shell scripts more robust
[4ee73cb] Separate test code from production code

1. inputs (for CI) are managed by code, not by .yml env. variables
2. rebar3_builds.txt added for stable repeatability
3. tests tweaked to make it easier to modify and drop dependency on production code
4. `dist` regenerated (duplicate files gone)
5. setup-elixir.js tweaked to this new reality
[d17fed4] Remove prettier from the package
[7d6f8f5] Actually break CI when we should
[b972eaf] Remove unrequired element
[0ffa28a] Ease maintenance and readability
[4690169] Fix as per broken tests
[a1371c6] Merge setup-erlang in
2021-03-30 11:54:20 -05:00
Bryan Paxton 86521d7b4d Rename to setup-beam (#21) 2021-03-29 14:51:27 -05:00
Eric Meadows-Jönsson 885971a72e v1.6.0 2021-01-21 14:20:44 +00:00
Bryan Paxton b9b3074680 Change occurences of actions/setup-elixir to erlef/setup-elixir (#2)
* Change all occurrences of actions/setup-elixir to erlef/setup-elixir
2021-01-19 15:20:06 -06:00
Eric Meadows-Jönsson 4edd0cd12d Install OTP branches 2021-01-12 02:21:05 +00:00
Denis Kulicek 7b728b73d0 Add experimental-otp input opt-in flag 2020-10-29 14:27:52 +01:00
Denis Kulicek d114e80cc4 Add osVersion parameter based on ImageOS env variable 2020-10-28 16:20:42 +01:00
Jonathan Clem 584173361f Merge pull request #44 from thboop/main
Swap to Environment Files
2020-09-29 12:02:50 -04:00
Thomas Boop 5849652165 Swap to Environment Files 2020-09-29 10:38:38 -04:00
Jonathan Clem 36fa5b27cc Merge pull request #42 from actions/unit-tests
Add basic unit tests for semver matching
2020-09-16 15:11:29 -04:00
Jonathan Clem 9c4ab7bf20 Revert package updates 2020-09-16 15:09:54 -04:00
Jonathan Clem c59c7ac8b6 Add pre-releases to integration tests 2020-09-16 14:58:19 -04:00
Jonathan Clem f39b7c3537 Add basic unit tests 2020-09-16 14:56:15 -04:00
Jonathan Clem ae203d55c6 Remove extra digit group from test matcher 2020-08-05 13:18:54 -04:00
Jonathan Clem b95d2a9ab0 s/location/line 2020-08-05 13:17:18 -04:00
Jonathan Clem bae0896578 Use VSCode plugin's problem matchers 2020-08-05 13:08:02 -04:00
Jonathan Clem b7580a9be3 Remove yarn.lock/yarn instructions 2020-08-05 10:59:58 -04:00
Jonathan Clem d6ff32ddb2 Add workflow_dispatch to workflow file 2020-08-05 10:56:08 -04:00
Jonathan Clem 60977d4297 Add runtime outputs to workflow file 2020-08-05 10:55:56 -04:00
Jonathan Clem df1bc16e01 Use core.setOutput to set output 2020-08-05 10:52:42 -04:00
Chris Dosé 1148b8ff81 set installed versions as outputs 2020-07-25 23:24:11 -07:00
Jonathan Clem ceecbf34d4 Replace default branch refs with main 2020-07-14 16:32:14 -04:00
Jonathan Clem c1e55db782 Install tools into RUNNER_TEMP/.setup-elixir 2020-05-18 16:38:30 -04:00
Jonathan Clem 22296354db Specify all versions as strings 2020-05-17 10:59:06 -04:00
Jonathan Clem 920f341bb8 Add exact test versions 2020-05-17 10:57:29 -04:00
Jonathan Clem 66a8e10a5c Add older and newer Elixir/OTP versions 2020-05-17 10:54:50 -04:00
Jonathan Clem 13359dc7e8 Add Prettier license cache 2020-05-14 16:32:21 -04:00
Jonathan Clem 9455766452 Update actions/checkout to v2 2020-05-14 16:25:34 -04:00
Jonathan Clem bff9ed892e Fix licensed check 2020-05-14 16:19:55 -04:00
Jonathan Clem 5f61b21f08 Add husky setup 2020-05-14 15:19:41 -04:00