Skip to content

Commit

Permalink
Add code coverage.
Browse files Browse the repository at this point in the history
  • Loading branch information
crertel committed Aug 3, 2024
1 parent 226594e commit 96c3136
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 66 deletions.
65 changes: 0 additions & 65 deletions .circleci/config.yml

This file was deleted.

4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,9 @@ jobs:
if: startsWith(matrix.elixir, '1.15')
- name: Run Tests
run: mix test
- name: Run coverage
run: mix coveralls.github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - name: Run credo
# run: mix credo suggest --min-priority=high --ignore-checks Credo.Check.Design.DuplicatedCode
9 changes: 8 additions & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,14 @@ defmodule Graphmath.Mixfile do
source_url: "https://github.com/crertel/graphmath",
docs: &docs/0,
deps: deps(),
test_coverage: [tool: ExCoveralls]
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.github": :test,
"coveralls.post": :test,
"coveralls.html": :test
]
]
end

Expand Down

0 comments on commit 96c3136

Please sign in to comment.