Skip to content

Commit 050f9e2

Browse files
authored
Run Erlang/OTP 28 on Windows CI (#14513)
1 parent d636a0a commit 050f9e2

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ jobs:
106106
name: Windows Server 2019, Erlang/OTP ${{ matrix.otp_version }}
107107
strategy:
108108
matrix:
109-
otp_version: ["26.2", "27.3"]
109+
otp_version: ["26.2", "27.3", "28.0"]
110110
runs-on: windows-2022
111111
steps:
112112
- name: Configure Git

lib/elixir/test/elixir/kernel/cli_test.exs

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ defmodule Kernel.CLI.ExecutableTest do
9696
assert {_output, 0} =
9797
System.cmd(elixir_executable(context.cli_extension), ["-e", "Time.new!(0, 0, 0)"])
9898

99-
# TODO: remove this once we bump CI to 26.3
99+
# TODO: remove this once we bump CI to Erlang/OTP 27
100100
if not (windows?() and System.otp_release() == "26") do
101101
{output, 0} =
102102
System.cmd(iex_executable(context.cli_extension), [
@@ -116,15 +116,19 @@ defmodule Kernel.CLI.ExecutableTest do
116116
end
117117
end
118118

119+
@tag :unix
120+
# This test hangs on Windows but "iex --version" works on the command line
121+
test "iex smoke test", %{cli_extension: cli_extension} do
122+
output = iex(~c"--version", cli_extension)
123+
assert output =~ "Erlang/OTP #{System.otp_release()}"
124+
assert output =~ "IEx #{System.version()}"
125+
end
126+
119127
test "--version smoke test", %{cli_extension: cli_extension} do
120128
output = elixir(~c"--version", cli_extension)
121129
assert output =~ "Erlang/OTP #{System.otp_release()}"
122130
assert output =~ "Elixir #{System.version()}"
123131

124-
output = iex(~c"--version", cli_extension)
125-
assert output =~ "Erlang/OTP #{System.otp_release()}"
126-
assert output =~ "IEx #{System.version()}"
127-
128132
output = elixir(~c"--version -e \"IO.puts(:test_output)\"", cli_extension)
129133
assert output =~ "Erlang/OTP #{System.otp_release()}"
130134
assert output =~ "Elixir #{System.version()}"

0 commit comments

Comments
 (0)