30 Commits

Author SHA1 Message Date
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 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
Eric Meadows-Jönsson 3622b49cdd Remove experimental-otp 2021-01-12 00:51: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 f39b7c3537 Add basic unit tests 2020-09-16 14:56:15 -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 c1e55db782 Install tools into RUNNER_TEMP/.setup-elixir 2020-05-18 16:38:30 -04:00
Eric Meadows-Jönsson 3f153648ab Fix install-hex / install-rebar
* Correctly check for strings in core.getInput() return value
* Add otp/bin to PATH to get compatible versions
2020-01-23 22:52:50 +01:00
Jonathan Clem 8a6d70bfc0 Install Elixir/OTP in /tmp 2019-12-04 13:54:33 -05:00
Jonathan Clem fa3dc4b442 Merge branch 'master' into emj/hex 2019-12-04 13:49:24 -05:00
Mijail Rondon c1ab867da9 Add error and warning matchers 2019-11-27 13:46:21 -05:00
Eric Meadows-Jönsson a12d5327a9 Check exact version match 2019-11-19 22:03:23 +01:00
Eric Meadows-Jönsson 71a9eee041 Support elixir branches 2019-11-18 00:03:58 +01:00
Eric Meadows-Jönsson 14bacb3367 Install from hex 2019-11-17 21:07:10 +01:00
Jonathan Clem ca25180aa6 Update Elixir versions
This includes 1.9.4 _preemptively_
2019-11-05 12:16:23 -05:00
Jonathan Clem 289ac7af73 Add more Erlang OTP versions in 22.1.x 2019-11-05 12:15:23 -05:00
Nathan Youngman 788bbdde77 Add Erlang 22.1 to versions 2019-10-03 15:48:39 -06:00
Jonathan Clem 83d6ee76a6 Initial commit 2019-08-28 16:49:59 -04:00