Skip to content

Commit

Permalink
Run check formatted in test so patch assertions work
Browse files Browse the repository at this point in the history
  • Loading branch information
scohen committed Jan 19, 2023
1 parent b23a87d commit 6c8e9d8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: cd apps/language_server && mix format --check-formatted
- run: MIX_ENV=test mix format --check-formatted
- run: cd apps/language_server && MIX_ENV=test mix format --check-formatted
- run: mix dialyzer_vendored
2 changes: 1 addition & 1 deletion apps/language_server/.formatter.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ impossible_to_format = [
]

deps =
if Mix.env() in [:dev, :test] do
if Mix.env() == :test do
[:patch]
else
[]
Expand Down

0 comments on commit 6c8e9d8

Please sign in to comment.