Skip to content

Commit

Permalink
Enable codecov analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
NelsonVides committed Dec 6, 2023
1 parent fd29e7e commit 8b9b29a
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 6 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
test:
name: ${{ matrix.test-type }} test on OTP ${{matrix.otp}}
name: ${{ matrix.test-type }} test on OTP ${{matrix.otp_vsn}}
strategy:
matrix:
otp_vsn: ['25.3', '24.3']
Expand All @@ -23,6 +23,11 @@ jobs:
rebar3-version: ${{ matrix.rebar_vsn }}
- if: matrix.test-type == 'regular'
run: make test
- if: matrix.test-type == 'regular'
name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- if: matrix.test-type == 'integration'
run: make integration_test
env:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ _build
rebar3.crashdump
*~
doc/
codecov.json
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ ct:
lint:
$(REBAR) as elvis lint

test: compile xref dialyzer ct lint
test: compile xref dialyzer ct lint codecov

codecov:
$(REBAR) as test codecov analyze

integration_test:
./integration_test/stop_test_cluster.sh
Expand Down
11 changes: 7 additions & 4 deletions rebar.config
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,13 @@

{profiles, [
{test, [
{deps, [
{meck, "0.9.2"},
{proper, "1.4.0"},
{bbmustache, "1.12.2"}
{cover_enabled, true},
{cover_export_enabled, true},
{plugins, [{rebar3_codecov, "0.4.0"}]},
{deps, [
{meck, "0.9.2"},
{proper, "1.4.0"},
{bbmustache, "1.12.2"}
]}
]},
{elvis, [{plugins, [{rebar3_lint, "3.0.1"}]}]}
Expand Down

0 comments on commit 8b9b29a

Please sign in to comment.