Skip to content

Commit 0f763b7

Browse files
committed
test: testing new tech on elixir v1.18
1 parent df4c75f commit 0f763b7

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

.github/workflows/elixir_test.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ jobs:
1515
matrix:
1616
os: [ubuntu-20.04, windows-latest]
1717
elixir_otp:
18-
- { elixir: 1.13, otp: 22 }
19-
- { elixir: 1.14, otp: 23 }
20-
- { elixir: 1.15, otp: 24 }
21-
- { elixir: 1.16, otp: 25 }
22-
- { elixir: 1.17, otp: 26 }
18+
# - { elixir: 1.13, otp: 22 }
19+
# - { elixir: 1.14, otp: 23 }
20+
# - { elixir: 1.15, otp: 24 }
21+
# - { elixir: 1.16, otp: 25 }
22+
# - { elixir: 1.17, otp: 26 }
2323
- { elixir: 1.18, otp: 27 }
2424

2525
steps:
@@ -36,6 +36,6 @@ jobs:
3636
run: mix deps.get
3737

3838
- name: Run tests
39-
run: mix test
39+
run: mix test --only only
4040

4141

lib/refactorex/refactor/variable/extract_variable.ex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ defmodule Refactorex.Refactor.Variable.ExtractVariable do
1919
do: false
2020

2121
def can_refactor?(%{node: node} = zipper, selection) do
22+
IO.inspect({node, selection})
23+
2224
cond do
2325
not AST.equal?(node, selection) ->
2426
false

test/refactor/variable/extract_variable_test.exs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,7 @@ defmodule Refactorex.Refactor.Variable.ExtractVariableTest do
270270
)
271271
end
272272

273+
@tag :only
273274
test "extracts single captured variable inside anonymous function" do
274275
assert_refactored(
275276
ExtractVariable,

0 commit comments

Comments
 (0)