Fix warnings in tests, treat warnings as errors in CI.

The warnings revealed two bad tests, the code still worked but the test
didn't actually test for it. Activating this for CI to prevent issues
like these in the future.
This commit is contained in:
Lain Soykaf 2023-01-03 14:59:14 -05:00
commit 72b3ec35f8
6 changed files with 6 additions and 5 deletions

View file

@ -85,7 +85,7 @@ unit-testing:
script:
- mix ecto.create
- mix ecto.migrate
- mix test --cover --preload-modules
- mix test --cover --preload-modules --warnings-as-errors
coverage: '/^Line total: ([^ ]*%)$/'
artifacts:
reports: