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:
parent
a0cdc4cf9e
commit
72b3ec35f8
6 changed files with 6 additions and 5 deletions
|
|
@ -1,6 +1,7 @@
|
|||
# Pleroma: A lightweight social networking server
|
||||
# Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
|
||||
# SPDX-License-Identifier: AGPL-3.0-only
|
||||
Code.put_compiler_option(:warnings_as_errors, true)
|
||||
|
||||
os_exclude = if :os.type() == {:unix, :darwin}, do: [skip_on_mac: true], else: []
|
||||
ExUnit.start(exclude: [:federated, :erratic] ++ os_exclude)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue