Skip to content

Commit

Permalink
Now
Browse files Browse the repository at this point in the history
  • Loading branch information
whatyouhide committed Mar 12, 2024
1 parent 56a577a commit 5321031
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,12 @@ jobs:
run: mix compile --warnings-as-errors
if: ${{ matrix.lint }}

# We always need to run tests because code coverage forces us to skip some
# tests, so better to run normal tests on the whole matrix and the coverage
# only on the latest version.
- name: Run tests
run: |
if [ -z "${{ matrix.coverage }}" ]; then
echo "Running tests without coverage."
mix test
else
echo "Running tests with coverage."
mix test
# mix coveralls.html
fi
run: mix test

- name: Run tests with coverage
if: ${{ matrix.coverage }}
run: mix coveralls.github --exclude fails_on_coverage
3 changes: 3 additions & 0 deletions test/cluster_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ if otp_release >= 25 do
use ExUnit.Case
import Mox

# These tests don't work if code coverage is enabled.
@moduletag :fails_on_coverage

setup_all do
Task.start_link(fn ->
System.cmd("epmd", [])
Expand Down

0 comments on commit 5321031

Please sign in to comment.