Skip to content

Commit ba319ee

Browse files
committed
Support Elixir 1.18 in GitHub CI
List of changes: - resolve type warnings in test case - use specific versions by string instead of number in CI matrix, see https://github.com/erlef/setup-beam?tab=readme-ov-file#specify-versions-as-strings-not-numbers
1 parent 0993bf5 commit ba319ee

File tree

2 files changed

+36
-27
lines changed

2 files changed

+36
-27
lines changed

.github/workflows/on-push.yml

+29-26
Original file line numberDiff line numberDiff line change
@@ -11,53 +11,56 @@ jobs:
1111
matrix:
1212
include:
1313
- pair:
14-
otp: 27.x
15-
elixir: 1.17.x
16-
lint: lint
14+
otp: "27"
15+
elixir: "1.18"
16+
lint: lint
17+
- pair:
18+
otp: "27"
19+
elixir: "1.17"
1720

1821
- pair:
19-
otp: 26.x
20-
elixir: 1.17.x
22+
otp: "26"
23+
elixir: "1.17"
2124
- pair:
22-
otp: 26.x
23-
elixir: 1.16.x
25+
otp: "26"
26+
elixir: "1.16"
2427
- pair:
25-
otp: 26.x
26-
elixir: 1.15.x
28+
otp: "26"
29+
elixir: "1.15"
2730

2831
- pair:
29-
otp: 25.x
30-
elixir: 1.17.x
32+
otp: "25"
33+
elixir: "1.17"
3134
- pair:
32-
otp: 25.x
33-
elixir: 1.16.x
35+
otp: "25"
36+
elixir: "1.16"
3437
- pair:
35-
otp: 25.x
36-
elixir: 1.15.x
38+
otp: "25"
39+
elixir: "1.15"
3740
- pair:
38-
otp: 25.x
39-
elixir: 1.14.x
41+
otp: "25"
42+
elixir: "1.14"
4043

4144
- pair:
42-
otp: 24.x
43-
elixir: 1.16.x
45+
otp: "24"
46+
elixir: "1.16"
4447
- pair:
45-
otp: 24.x
46-
elixir: 1.15.x
48+
otp: "24"
49+
elixir: "1.15"
4750
- pair:
48-
otp: 24.x
49-
elixir: 1.14.x
51+
otp: "24"
52+
elixir: "1.14"
5053
- pair:
51-
otp: 24.x
52-
elixir: 1.13.x
54+
otp: "24"
55+
elixir: "1.13"
5356

5457
steps:
5558
- uses: actions/checkout@v4
5659
- uses: erlef/setup-beam@v1
5760
with:
5861
otp-version: ${{matrix.pair.otp}}
5962
elixir-version: ${{matrix.pair.elixir}}
60-
- uses: actions/cache@v3
63+
- uses: actions/cache@v4
6164
with:
6265
path: |
6366
deps

test/support/file_helpers.ex

+7-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,13 @@ defmodule Support.FileHelpers do
1818
Note: It doesn't appear this can be run with `use ExUnit.Case, async: true`
1919
"""
2020
defmacro in_tmp(fun) do
21-
path = Path.join([tmp_path(), "#{__CALLER__.module}", "#{elem(__CALLER__.function, 0)}"])
21+
fn_name =
22+
case __CALLER__.function do
23+
{fn_name, _arity} -> fn_name
24+
_ -> "unknown"
25+
end
26+
27+
path = Path.join([tmp_path(), "#{__CALLER__.module}", "#{fn_name}"])
2228

2329
quote do
2430
path = unquote(path)

0 commit comments

Comments
 (0)