From f01ab383abc1a7da4e90a6d47615c0d9fef04436 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Wed, 21 May 2025 13:50:22 +0200 Subject: [PATCH 1/2] Run Erlang/OTP 28 on Windows CI --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 681c22b782..e2260afdf1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -106,7 +106,7 @@ jobs: name: Windows Server 2019, Erlang/OTP ${{ matrix.otp_version }} strategy: matrix: - otp_version: ["26.2", "27.3"] + otp_version: ["26.2", "27.3", "28.0"] runs-on: windows-2022 steps: - name: Configure Git From a46426d7829c357a289cf4ee67fa0a64f8d3d1a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Thu, 22 May 2025 09:56:09 +0200 Subject: [PATCH 2/2] CI --- lib/elixir/test/elixir/kernel/cli_test.exs | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/lib/elixir/test/elixir/kernel/cli_test.exs b/lib/elixir/test/elixir/kernel/cli_test.exs index 4a49d9c7ba..5f2e9f3edf 100644 --- a/lib/elixir/test/elixir/kernel/cli_test.exs +++ b/lib/elixir/test/elixir/kernel/cli_test.exs @@ -96,7 +96,7 @@ defmodule Kernel.CLI.ExecutableTest do assert {_output, 0} = System.cmd(elixir_executable(context.cli_extension), ["-e", "Time.new!(0, 0, 0)"]) - # TODO: remove this once we bump CI to 26.3 + # TODO: remove this once we bump CI to Erlang/OTP 27 if not (windows?() and System.otp_release() == "26") do {output, 0} = System.cmd(iex_executable(context.cli_extension), [ @@ -116,15 +116,19 @@ defmodule Kernel.CLI.ExecutableTest do end end + @tag :unix + # This test hangs on Windows but "iex --version" works on the command line + test "iex smoke test", %{cli_extension: cli_extension} do + output = iex(~c"--version", cli_extension) + assert output =~ "Erlang/OTP #{System.otp_release()}" + assert output =~ "IEx #{System.version()}" + end + test "--version smoke test", %{cli_extension: cli_extension} do output = elixir(~c"--version", cli_extension) assert output =~ "Erlang/OTP #{System.otp_release()}" assert output =~ "Elixir #{System.version()}" - output = iex(~c"--version", cli_extension) - assert output =~ "Erlang/OTP #{System.otp_release()}" - assert output =~ "IEx #{System.version()}" - output = elixir(~c"--version -e \"IO.puts(:test_output)\"", cli_extension) assert output =~ "Erlang/OTP #{System.otp_release()}" assert output =~ "Elixir #{System.version()}"