Commit Graph

296 Commits

Author SHA1 Message Date
Eric Meadows-Jönsson c2e02f777c Use new domain repo.hex.pm => builds.hex.pm (#192) v1.15.4 v1.15 2023-05-01 15:59:28 +02:00
Paulo F. Oliveira 2595a954a1 Fix tests (#184)
* Fix licenses

* Be less hopeful

* Prevent remote breakage from breaking our CI
2023-03-29 22:54:51 -05:00
Blake Kostner a255120a82 Remove Dialyzer-specific problem matcher (#182)
* fix: remove dialyzer problem matcher

* remove dialyzer problem matcher test

* remove dist problem matcher
v1.15.3
2023-03-29 14:43:12 +01:00
Bryan Paxton ffd9affe89 Update examples in readme to reference actions/checkout@v3 (#181) 2023-02-13 18:35:35 -06:00
Paulo F. Oliveira 049962787b Test rebar3 being installed after OTP via .tool-versions (#180) 2023-01-27 21:57:09 -06:00
Paulo F. Oliveira 1f06ac36d3 Simulate input github-token to fix unit tests (#174)
* Simulate input to fix unit tests
2023-01-07 13:51:47 -06:00
Bryan Paxton e3f6ffe287 Provide an input for github tokens (#172)
* Provide an input for github tokens

- By providing an input for github tokens with a default users no longer have to pass
  the github token via their environment across workflows.
- Remove GITHUB_TOKEN from our environment in all workflows

* Don't run workflows on main on pull requests

Co-authored-by: Paulo F. Oliveira <paulo.ferraz.oliveira@gmail.com>
v1.15.2
2023-01-06 10:14:27 -06:00
github-actions[bot] 81d8403713 Update 3rd party licenses (#171)
Co-authored-by: GitHub Actions <actions@user.noreply.github.com>
2023-01-05 13:49:43 +00:00
dependabot[bot] c10774ce0f Bump json5 from 1.0.1 to 1.0.2 (#170)
Bumps [json5](https://github.com/json5/json5) from 1.0.1 to 1.0.2.
- [Release notes](https://github.com/json5/json5/releases)
- [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md)
- [Commits](https://github.com/json5/json5/compare/v1.0.1...v1.0.2)

---
updated-dependencies:
- dependency-name: json5
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
v1.15.1
2023-01-04 07:35:12 +00:00
Paulo F. Oliveira 37ac1c5116 Try to prevent 403 when accessing the GitHub API (#168)
* Repeat request on error (while logging it)

* Test one change at a time

* Conditionally authorize requests

This seems to affect Windows builds, so might not be the best solution,
but we're trying to isolate the issue to move forward

* Act on CI results

* Ease consumption via a JSON.parse wrapper

We still throw the error, but in a more controlled manner

* Act on CI results
2023-01-04 07:27:57 +00:00
Paulo F. Oliveira 2d314bc413 Check behaviour on Windows pre- Gleam 0.23 (#166)
* Check behaviour on Windows pre- Gleam 0.23

* Increase consistency with .sh counterpart

* Support older versions (pre 0.22.1) on Windows

* Increase inter-script consistency

* Run `npm run build-dist`

* React to CI results
2022-12-14 09:25:50 -06:00
Paulo F. Oliveira aee3f52e58 Update versions as to not have CI fail (while fixing "non-failing" CI) (#164)
* Make README links usable

* Update versions under test

Otherwise it silently fails with "Error: Requested Erlang/OTP version
(23.2) not found in version list (should you be using option
'version-type': 'strict'?)", which is not too important since this
happens when setup-beam.js is included (which happens in the test
environment only)

* Fix failing Gleam test

I think `gleam check` requires OTP (execution complains about missing
`escript`) where `gleam format` does not
2022-12-11 18:33:12 -06:00
github-actions[bot] 96fce952fd Update 3rd party licenses (#162)
Co-authored-by: GitHub Actions <actions@user.noreply.github.com>
2022-12-08 07:51:51 -06:00
Paulo F. Oliveira 35850967ef Have rebar3.cmd work on a Windows CMD shell (#151)
* Provide a working rebar.cmd for system that need it

(Windows on non-PowerShell)

* Add tests for recent changes

If the "run" were to fail the job would too

* Check if Rust can find it
2022-12-01 19:16:40 +00:00
Blake Kostner b980a5ac9b Ease Elixir escripts execution by adding ${HOME}/.mix/escripts to path (#153)
* feat: add escripts to path

* Update src/install-elixir.ps1

Co-authored-by: Paulo F. Oliveira <paulo.ferraz.oliveira@gmail.com>

* add github action combo to test escript

* force install

* use os homedir for escript install path

Co-authored-by: Paulo F. Oliveira <paulo.ferraz.oliveira@gmail.com>
v1.15.0
2022-11-22 22:39:36 +00:00
Paulo F. Oliveira c373088147 Ease consumption by means of .tool-versions (#159)
* Ease consumption by means of .tool-versions

* Update as per self-review

* Update as per self-review

* Act on CI results

* Act on CI results

* Act on CI results

This value is check by code, in any case

* Act on CI results

* Act on CI results

* Act on CI results

It appears we can't install Elixir twice on Windows, but can
on Ubuntu; this is outside the scope of this branch's context
so I won't fix it now

* Tweak visual consumption elements

* Ease potential future maintenance and/or update
2022-11-22 22:34:21 +00:00
github-actions[bot] 529221db21 Update 3rd party licenses (#158)
Co-authored-by: GitHub Actions <actions@user.noreply.github.com>
2022-11-18 22:47:54 +00:00
github-actions[bot] f19acc5287 Update 3rd party licenses (#157)
Co-authored-by: GitHub Actions <actions@user.noreply.github.com>
2022-11-18 18:17:34 +00:00
github-actions[bot] 00a8fc1243 Update 3rd party licenses (#150)
Co-authored-by: GitHub Actions <actions@user.noreply.github.com>
2022-10-20 21:37:52 +01:00
Paulo F. Oliveira 713cc2ffe3 Move away from set-output (while updating all deps) (#148)
* Update all our deps

Get rid of warnings such as:
* `save-state` will be deprecated
* `set-output` will be deprecated
* nodejs 12 is being deprecated
...

Rely on tests to make sure the actions still works

* Fix as per CI results

* Get rid of deprecated containers

* Have a warningless run

We're not testing rebar3 here, in any case
v1.14.0 v1.14
2022-10-19 21:51:01 +01:00
Paulo F. Oliveira 8d31e4db55 Allow version-type: strict + otp-version: master for Elixir -based builds (#144)
* Check tests failing for something that should pass

* Test with version-type: strict

* Add more tests

GitHub actions is refusing to run a given workflow :shrug

* Try to fix new test that shouldn't be failing

Which is exactly what we intended to originate by starting a new
pull request.

* Fix tests as per CI

* Fix tests as per CI

* Adapt to "latest"

* Fix as per CI results

Actions' window shows everything as Ok but then internals not

Error when evaluating 'runs-on' for job 'integration_test'. .github/workflows/ubuntu.yml (Line: 19, Col: 14): Unexpected type of value '', expected type: OneOf.

Strange one, this one!

* Try to "help" for non-OTP declared input

We do this for OTP-, but not for maint-
as the former is hopefully more common
than the latter

* Introduce `latest` to signify `master`

Semantically they're similar, but with `latest` we know:
1. to fetch Elixir's no-otp-... version
2. to fetch Erlang's master

whereas with 25 (latest at this moment) we'd
try to fetch elixirvsn-otp-25 which could fail with
Elixir master and version-type strict

* Fix as per CI

Still not 100% convinced that `latest` should be separate from `master`
but I want to know how tests run, in this case in particular

* Fix as per CI

* Fix as per CI

* Revert potential wrong decision

* Fix as per understand recent Elixir changes (namely master v. main)

* Try to simplify it

We introduce the concept of version v. branch (as per @ericmj)
and we use that to find the most appropriate Erlang/Elixir combo.
2022-10-19 21:10:26 +01:00
github-actions[bot] 4c52669fda Update 3rd party licenses (#145)
Co-authored-by: GitHub Actions <actions@user.noreply.github.com>
2022-10-11 13:20:09 +01:00
github-actions[bot] 6a5f23a6f0 Update 3rd party licenses (#143)
Co-authored-by: GitHub Actions <actions@user.noreply.github.com>
2022-09-23 13:40:49 +01:00
Wojtek Mach 8bfa104bdd Test environment variables are set (#142) 2022-09-16 20:01:17 +02:00
Wojtek Mach d85df626dd Fix setting INSTALL_DIR_FOR_OTP (#141) v1.13.1 2022-09-16 10:28:57 +02:00
Paulo F. Oliveira 6b2f8153b4 Crash on invalid Elixir+OTP combo (#134)
* Prevent "future" errors when choosing incompatible Elixir v. OTP versions

* Fix tests as per GitHub Actions' output

* Make test elixir `master` strict

It has no -otp- in the name
v1.13.0 v1.13
2022-09-13 08:21:46 +01:00
Wojtek Mach 7dd0d763a8 Install OTP on Windows to a local directory (#139) 2022-09-12 16:40:00 +02:00
Louis Pilfold ee0fa0b672 Update for latest Gleam (#138)
* Update for latest Gleam

- Gleam releases now use LLVM triplets for platforms so the download
  URLs have been updated accordingly.
- Gleam's rebar3 support has been removed.

This change means that future versions of this action cannot download
older versions of Gleam. I can make it backwards compatible, but I will
need help from someone who can convert the shell script into PowerShell
for Windows.

* Support older Gleam versions

* Remove rebar from Gleam
2022-09-12 15:35:29 +01:00
github-actions[bot] 4518ce17a4 Update 3rd party licenses (#135)
Co-authored-by: GitHub Actions <actions@user.noreply.github.com>
2022-08-22 14:19:29 +01:00
dependabot[bot] 1fddfab461 Bump @actions/core from 1.6.0 to 1.9.1 (#133)
* Bump @actions/core from 1.6.0 to 1.9.1

Bumps [@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core) from 1.6.0 to 1.9.1.
- [Release notes](https://github.com/actions/toolkit/releases)
- [Changelog](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/core)

---
updated-dependencies:
- dependency-name: "@actions/core"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update what dependabot didn't

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Paulo F. Oliveira <paulo.ferraz.oliveira@gmail.com>
2022-08-22 11:20:01 +01:00
github-actions[bot] 6942ea249f Update 3rd party licenses (#132)
Co-authored-by: GitHub Actions <actions@user.noreply.github.com>
2022-08-22 11:11:31 +01:00
Paulo F. Oliveira 69fb25ba7e Ease consumption (#125)
Don't take `maint-` -prefixed versions into account unless they're asked for it
specifically
At the same time, while fetching versions, make sure we identify them better so that
25 does not end up pulling maint-25 instead of OTP-25.0, as it should
v1.12.0 v1.12
2022-08-01 13:23:47 +01:00
Paulo F. Oliveira caa49b0658 Try current state with Ubuntu 22.04 (#124) 2022-07-12 21:59:53 -05:00
github-actions[bot] ae1b3f83c0 Update 3rd party licenses (#126)
Co-authored-by: GitHub Actions <actions@user.noreply.github.com>
2022-07-11 12:27:42 +01:00
Kian-Meng Ang 79c4ce944c Update README: signal OTP-25 as a working version (#122)
See https://github.com/erlef/setup-beam/pull/118
2022-06-27 12:44:56 +01:00
Michał Łępicki a7fc45fd2d Fix mispaste in README.md (#119) 2022-05-31 08:48:37 -05:00
Paulo F. Oliveira ac7b7d515b Test on top of Erlang/OTP 25+ (not RC) (#118)
* Add Erlang/OTP 25+ (not RC) to tests

* Test a specific combo

And a strict version

* Allow testing "edge" cases

We weren't taking our own considerations into account for version strictness
We want to be able to test cases where we use -otp- (if the consumer is doing
it, at least they have to use _strict_ to assert their decision)
2022-05-30 15:11:49 +01:00
Javier Garea b8427d3a11 Fix wrong environment variable descriptions in the README (#115) 2022-05-12 13:46:50 +01:00
github-actions[bot] c9256cba97 Update 3rd party licenses (#114)
Co-authored-by: GitHub Actions <actions@user.noreply.github.com>
2022-05-12 13:40:21 +01:00
github-actions[bot] 9627051904 Update 3rd party licenses (#113)
Co-authored-by: GitHub Actions <actions@user.noreply.github.com>
2022-05-09 17:24:54 +01:00
github-actions[bot] cb4115cacb Update 3rd party licenses (#112)
Co-authored-by: GitHub Actions <actions@user.noreply.github.com>
2022-04-26 13:33:03 +01:00
github-actions[bot] 1bf5800962 Update 3rd party licenses (#111)
Co-authored-by: GitHub Actions <actions@user.noreply.github.com>
2022-04-24 13:22:47 +01:00
Paulo F. Oliveira 311afd9034 Apply security fix as proposed by Dependabot (#110)
* Apply security fix as proposed by Dependabot

I actually went to the developer first, pull request the lib., but then my
update got reject, since the lib. moved to TypeScript (from JavaScript);
still, a new release was done and this might just solve our issue

* Update eslint as warned by GitHub notifications
2022-04-23 20:01:06 +01:00
Paulo F. Oliveira 9d4fdad6a1 Feature/run build dist (#109)
* Remove duplicates

We already have everything we need in 3RD_PARTY_LICENSES

* Be mindful of pull request creators
2022-04-21 23:51:29 +01:00
Bryan Paxton 10d50f7062 Use overwrite modifier on unzip to avoid prompts (#106) v1.11.2 v1.11 2022-04-21 12:38:31 -05:00
github-actions[bot] 42313cae10 Update 3rd party licenses (#105)
Co-authored-by: GitHub Actions <actions@user.noreply.github.com>
2022-04-17 10:35:44 -05:00
github-actions[bot] 46b0c79322 Update 3rd party licenses (#104)
Co-authored-by: GitHub Actions <actions@user.noreply.github.com>
2022-04-13 16:11:09 +01:00
Paulo F. Oliveira 5436ca9587 Keep up with the times (#102)
* Keep up with the times

* Act on local static analysis (and other actions) results

npm run ... from package.json
2022-04-12 18:20:59 +01:00
github-actions[bot] 01cb298fa5 Update 3rd party licenses (#103)
Co-authored-by: GitHub Actions <actions@user.noreply.github.com>
2022-04-12 16:19:04 +01:00
Paulo F. Oliveira 2e0500f2a5 Handle strings as such (#100)
* Handle strings as such

* Let automation do its thing
v1.11.1
2022-04-07 20:27:52 +01:00