Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions .github/workflows/elixir.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,16 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
elixir: ["1.15", "1.18"]
otp: ["26", "27"]
exclude:
include:
- elixir: "1.15"
otp: "26"
check_formatting: false
- elixir: "1.18"
otp: "27"
check_formatting: false
- elixir: "1.19"
otp: "28"
check_formatting: true
cache_version: ["3"]

steps:
Expand All @@ -41,6 +46,7 @@ jobs:
mix local.hex --force
mix deps.get
- name: Check Formatting
if: matrix.check_formatting
run: mix format --check-formatted
- name: Credo
run: mix credo --strict
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ jobs:
- name: Setup BEAM
uses: erlef/setup-beam@v1
with:
elixir-version: "1.16"
otp-version: "26"
elixir-version: "1.19"
otp-version: "28"
- name: Publish to Hex.pm
run: |
mix local.hex --force
Expand Down
4 changes: 2 additions & 2 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
elixir 1.18.1-otp-27
erlang 27.0
elixir 1.19.4-otp-28
erlang 28.1
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,3 +156,7 @@ version.
Documentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_doc)
and published on [HexDocs](https://hexdocs.pm). Once published, the docs can
be found at [https://hexdocs.pm/expression](https://hexdocs.pm/expression).

## Testing & Compatibility

We follow a diagonal testing strategy to ensure backward compatibility while keeping CI manageable. If you encounter issues with a specific version combination within our supported range, please open an issue.
4 changes: 2 additions & 2 deletions test/expression/v2/parser_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,8 @@ defmodule Expression.V2.ParserTest do
"\nHi there ",
[{"__property__", ["contact", "whatsapp_profile_name"]}],
"\n\n*HANGMAN*)\n)\n"
], "", _, _,
_} = Parser.parse("\nHi there @contact.whatsapp_profile_name\n\n*HANGMAN*)\n)\n")
], "", _, _, _} =
Parser.parse("\nHi there @contact.whatsapp_profile_name\n\n*HANGMAN*)\n)\n")
end
end
end
2 changes: 1 addition & 1 deletion test/expression_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ defmodule ExpressionTest do
})
end

assert_raise BadMapError, "expected a map, got: [\"A\", \"B\", \"C\"]", fn ->
assert_raise BadMapError, ~r/expected a map, got:.*\["A", "B", "C"\]/s, fn ->
Expression.evaluate("@delete(map, \"key\")", %{
"map" => ["A", "B", "C"]
})
Expand Down