From aee3f52e588683e85cd05b89fcb48732531f3aed Mon Sep 17 00:00:00 2001 From: "Paulo F. Oliveira" Date: Mon, 12 Dec 2022 00:33:12 +0000 Subject: [PATCH] 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 --- .github/workflows/ubuntu.yml | 4 ++-- README.md | 12 ++++++------ __tests__/setup-beam.test.js | 6 +++--- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 4d0ac51..04c2778 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -179,10 +179,10 @@ jobs: cd test-projects/erlang_rebar3 rebar3 ct if: ${{matrix.combo.rebar3-version}} - - name: Type check Gleam project (without installing Erlang/OTP) + - name: Format Gleam project (without installing Erlang/OTP) run: | cd test-projects/gleam_gleam - gleam check + gleam format if: ${{ matrix.combo.gleam-version && !matrix.combo.otp-version }} - name: Run Gleam project tests (without `rebar3`) run: | diff --git a/README.md b/README.md index 5c976c0..9f3c413 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,12 @@ # setup-beam [![GitHub Actions][action-img]][action] [![GitHub Actions][ubuntu-img]][ubuntu] [![GitHub Actions][windows-img]][windows] -[action]: https://github.com/erlef/setup-beam -[action-img]: https://github.com/erlef/setup-beam/workflows/action/badge.svg -[ubuntu]: https://github.com/erlef/setup-beam -[ubuntu-img]: https://github.com/erlef/setup-beam/workflows/ubuntu/badge.svg -[windows]: https://github.com/erlef/setup-beam -[windows-img]: https://github.com/erlef/setup-beam/workflows/windows/badge.svg +[action]: https://github.com/erlef/setup-beam/actions/workflows/action.yml +[action-img]: https://github.com/erlef/setup-beam/actions/workflows/action.yml/badge.svg +[ubuntu]: https://github.com/erlef/setup-beam/actions/workflows/ubuntu.yml +[ubuntu-img]: https://github.com/erlef/setup-beam/actions/workflows/ubuntu.yml/badge.svg +[windows]: https://github.com/erlef/setup-beam/actions/workflows/windows.yml +[windows-img]: https://github.com/erlef/setup-beam/actions/workflows/windows.yml/badge.svg This action sets up an Erlang/OTP environment for use in a GitHub Actions workflow by: diff --git a/__tests__/setup-beam.test.js b/__tests__/setup-beam.test.js index 3e715d5..4013f31 100644 --- a/__tests__/setup-beam.test.js +++ b/__tests__/setup-beam.test.js @@ -1,6 +1,6 @@ -simulateInput('otp-version', '23.2') -simulateInput('elixir-version', '1.11') -simulateInput('rebar3-version', '3.14') +simulateInput('otp-version', '25.1.2') +simulateInput('elixir-version', '1.14.2') +simulateInput('rebar3-version', '3.20') simulateInput('install-rebar', 'true') simulateInput('install-hex', 'true')