From 5531018f7e3bbfd5bc7c643ca8fe74715c51c804 Mon Sep 17 00:00:00 2001 From: Steve Cohen Date: Thu, 19 Jan 2023 11:53:00 -0800 Subject: [PATCH] Run check formatted in test so patch assertions work --- .github/workflows/ci.yml | 2 +- apps/language_server/.formatter.exs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 31e696b04..e6288b1cb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -123,6 +123,6 @@ jobs: mix deps.get - name: Restore timestamps to prevent unnecessary recompilation run: IFS=$'\n'; for f in $(git ls-files); do touch -d "$(git log -n 1 --pretty='%cI' -- $f)" "$f"; done - - run: mix format --check-formatted + - run: MIX_ENV=test mix format --check-formatted - run: cd apps/language_server && mix format --check-formatted - run: mix dialyzer_vendored diff --git a/apps/language_server/.formatter.exs b/apps/language_server/.formatter.exs index 9e7318862..d95a3b59e 100644 --- a/apps/language_server/.formatter.exs +++ b/apps/language_server/.formatter.exs @@ -4,7 +4,7 @@ impossible_to_format = [ ] deps = - if Mix.env() in [:dev, :test] do + if Mix.env() == :test do [:patch] else []