Skip to content

Commit

Permalink
ci: add Elixir 1.18
Browse files Browse the repository at this point in the history
  • Loading branch information
ahamez committed Jan 8, 2025
1 parent a4eab79 commit b10c326
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/elixir.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
jobs:
build:
runs-on: ubuntu-20.04
name: OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}}
name: OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}} ${{matrix.name_suffix}}
strategy:
fail-fast: false
matrix:
Expand All @@ -30,12 +30,18 @@ jobs:
check_format: true
check_deps: true
dialyzer: true
- elixir: "1.17"
- elixir: "1.18"
otp: "27"
check_format: true
check_deps: true
dialyzer: true
- elixir: "1.18"
otp: "27"
check_format: true
check_deps: true
dialyzer: true
unlock_deps: true
name_suffix: " (unlock deps)"

steps:
- uses: actions/checkout@v4
Expand Down
17 changes: 16 additions & 1 deletion test/conformance_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,22 @@ defmodule Protox.ConformanceTest do
assert {:ok, _} = Mix.Tasks.Protox.Conformance.run(["--quiet", "--compile-only"])

runner = Path.expand("#{Mix.Project.deps_paths().protobuf}/bin/conformance_test_runner")
assert File.exists?(runner)
# assert File.exists?(runner)
# assert {:ok, stat} = File.lstat(runner)
# IO.inspect(stat)
case File.lstat(runner) do
{:ok, stat} ->
IO.puts("#{inspect(stat)}")

_ ->
path = Path.expand(Mix.Project.deps_paths().protobuf)

ls = File.ls!(path)
ls_bin = File.ls(Path.join(path, "bin"))

IO.puts("#{inspect(ls)}")
IO.puts("#{inspect(ls_bin)}")
end

protox_conformance = Path.expand("./protox_conformance")
assert File.exists?(protox_conformance)
Expand Down

0 comments on commit b10c326

Please sign in to comment.