From 02b4e9ee698864648a6c5d310d4dba078d74a06f Mon Sep 17 00:00:00 2001 From: Grant West Date: Fri, 1 Aug 2025 22:33:09 -0400 Subject: [PATCH] ci: fix by creating plt files before test run - `mix test` requires plt file to already exist --- .github/workflows/ci.yml | 4 +++- test/test/mockable_test.exs | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f3daeae..30f0798 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,7 +26,9 @@ jobs: otp-version: ${{matrix.pair.otp}} elixir-version: ${{matrix.pair.elixir}} - - run: mix deps.get --only test + - run: mix deps.get - run: mix deps.compile + - name: Create PLT file (needed for tests) + run: MIX_ENV=test mix dialyzer --plt - run: mix test - run: MIX_ENV=prod_test mix test diff --git a/test/test/mockable_test.exs b/test/test/mockable_test.exs index 108c654..e9f2dc2 100644 --- a/test/test/mockable_test.exs +++ b/test/test/mockable_test.exs @@ -67,7 +67,7 @@ defmodule MockableTest do return_fail_line = function_lines.dialyzer_return_fail + 1 assert [ - {:warn_failing_call, {~c"test/support/client.ex", {_line, _col}}, + {:warn_failing_call, {~c"test/support/client.ex", _location}, {:call, [ Client, @@ -82,7 +82,7 @@ defmodule MockableTest do ] = warning_for_line(client_warnings, argument_fail_line) assert [ - {:warn_failing_call, {~c"test/support/client.ex", {_line, _col}}, + {:warn_failing_call, {~c"test/support/client.ex", _location}, {:call, [ :erlang,