Skip to content

Commit 20bb533

Browse files
committed
Lets see what happens in CI
1 parent 6dc2ba1 commit 20bb533

File tree

2 files changed

+17
-7
lines changed

2 files changed

+17
-7
lines changed

.github/workflows/elixir.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ jobs:
8080
- name: Check format
8181
run: mix format --check-formatted
8282

83-
- name: Check application compile warnings
84-
run: mix compile --force --warnings-as-errors
83+
# - name: Check application compile warnings
84+
# run: mix compile --force --warnings-as-errors
8585

8686
- name: Check Credo warnings
8787
run: mix credo

test/error_tracker_test.exs

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,21 @@ defmodule ErrorTrackerTest do
3838
assert error.kind == to_string(ArithmeticError)
3939
assert error.reason == "bad argument in arithmetic expression"
4040

41-
assert last_line.module == "erlang"
42-
assert last_line.function == "+"
43-
assert last_line.arity == 2
44-
refute last_line.file
45-
refute last_line.line
41+
# Elixir 1.17.0 reports these errors differently than previous versions
42+
if Version.compare(System.version(), "1.17.0") == :lt do
43+
dbg(last_line)
44+
assert last_line.module == "Elixir.ErrorTrackerTest"
45+
assert last_line.function == "report_error/2"
46+
assert last_line.arity == 1
47+
assert last_line.file == @relative_file_path
48+
assert last_line.line == 11
49+
else
50+
assert last_line.module == "erlang"
51+
assert last_line.function == "+"
52+
assert last_line.arity == 2
53+
refute last_line.file
54+
refute last_line.line
55+
end
4656
end
4757

4858
test "reports undefined function errors" do

0 commit comments

Comments
 (0)