Skip to content

Commit 9265c33

Browse files
authored
Fix CI on Ubuntu Noble (#204)
1 parent 50f1fae commit 9265c33

15 files changed

Lines changed: 60 additions & 48 deletions

File tree

.github/workflows/build.yml

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,39 +15,34 @@ jobs:
1515
fail-fast: false
1616
matrix:
1717
elixir: ["1.19.0", "1.18.0", "1.17.0", "1.16.0", "1.15.0"]
18-
erlang: ["24.2.1"]
19-
ubuntu: ["jammy-20260217"]
18+
erlang: ["26.2.5.3"]
19+
ubuntu: ["noble-20260217"]
2020

2121
steps:
22-
- uses: actions/checkout@v1.0.0
22+
- uses: actions/checkout@v4
2323

24+
- name: Install CA certificates
25+
run: apt-get update -qq && apt-get install -y ca-certificates
26+
2427
- name: Cache dependencies
2528
uses: actions/cache@v4
2629
with:
2730
path: deps/
2831
key: dependencies-${{ matrix.elixir }}-erlang-${{ matrix.erlang }}-${{ hashFiles('mix.lock') }}
29-
30-
- name: Cache dialyzer plt
31-
uses: actions/cache@v4
32-
with:
33-
path: _build/
34-
key: build-elixir-${{ matrix.elixir }}-erlang-${{ matrix.erlang }}-${{ hashFiles('mix.lock') }}
35-
32+
3633
- name: Install dependencies
3734
run: |-
3835
mix local.rebar --force
3936
mix local.hex --force
4037
mix deps.get
4138
4239
- name: Check format
43-
if: (!startsWith(matrix.elixir, '1.7'))
40+
if: matrix.elixir >= '1.18.0'
4441
run: mix format --check-formatted
4542

4643
- name: Run static code analysis
44+
if: matrix.elixir >= '1.17.0'
4745
run: mix credo --strict
48-
49-
- name: Run dialyzer
50-
run: mix dialyzer
5146

5247
- name: Run tests
5348
run: mix test --cover

config/config.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
use Mix.Config
1+
import Config
22

33
import_config "#{Mix.env()}.exs"

config/dev.exs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-

config/test.exs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
1-
use Mix.Config
1+
import Config
2+
3+
config :credo,
4+
checks: %{
5+
disabled: [
6+
# requires Elixir < 1.8.0
7+
{Credo.Check.Refactor.MapInto, []},
8+
# requires Elixir < 1.7.0
9+
{Credo.Check.Warning.LazyLogging, []}
10+
]
11+
}
212

313
config :stream_data,
414
max_runs:

lib/warpath/element.ex

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ defmodule Warpath.Element do
3434
]
3535
3636
#List
37-
iex> Warpath.Element.elementify(%{name: "Warpath", category: "Autobots"}, [])
37+
iex> %{name: "Warpath", category: "Autobots"}
38+
...> |> Warpath.Element.elementify([])
39+
...> |> Enum.sort_by(& &1.path)
3840
[
3941
%Warpath.Element{value: "Autobots", path: [{:property, :category }]},
4042
%Warpath.Element{value: "Warpath", path: [{:property, :name }]}

lib/warpath/expression/tokenizer.ex

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ defmodule Warpath.Expression.Tokenizer do
1212
{:ok, tokens}
1313

1414
{:error, {line, _module, message}, _} ->
15-
{:error, TokenizerError.exception("Invalid syntax on line #{line}, #{inspect(message)}")}
15+
{:error,
16+
TokenizerError.exception(
17+
"Invalid syntax on line #{line}, #{inspect(message, charlists: :as_charlists)}"
18+
)}
1619
end
1720
end
1821

lib/warpath/query/descendant_operator.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
alias Warpath.Element
2-
alias Warpath.Expression
32
alias Warpath.Execution.Env
3+
alias Warpath.Expression
44
alias Warpath.Filter
5-
alias Warpath.Query.IndexOperator
65
alias Warpath.Query.DescendantOperator
6+
alias Warpath.Query.IndexOperator
77

88
defprotocol DescendantOperator do
99
@moduledoc false

lib/warpath/query/filter_operator.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
alias Warpath.Element
2-
alias Warpath.Expression
32
alias Warpath.Element.Path
43
alias Warpath.Execution.Env
4+
alias Warpath.Expression
55
alias Warpath.Filter.Predicate
66
alias Warpath.Query.FilterOperator
77

lib/warpath/query/index_operator.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
alias Warpath.Element
2-
alias Warpath.Expression
32
alias Warpath.Execution.Env
3+
alias Warpath.Expression
44
alias Warpath.Query.IndexOperator
55

66
defprotocol IndexOperator do

lib/warpath/query/union_operator.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ alias Warpath.Element
22
alias Warpath.Execution.Env
33
alias Warpath.Expression
44
alias Warpath.Query.Accessible
5-
alias Warpath.Query.UnionOperator
65
alias Warpath.Query.IdentifierOperator
6+
alias Warpath.Query.UnionOperator
77

88
defprotocol UnionOperator do
99
@moduledoc false

0 commit comments

Comments
 (0)