Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 3 additions & 19 deletions .github/workflows/erlang-parallel-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,6 @@ on:
required: false
default: true
type: boolean
use-coveralls:
description: 'Use coveralls for code coverage analysis.'
required: false
default: false
type: boolean
# Workflow env
cache-version:
description: 'Cache version. Only change this if you *need* to reset build caches.'
Expand Down Expand Up @@ -260,24 +255,13 @@ jobs:
name: ct-logs
path: _build/test/logs

- name: Run test coverage conversion (covertool)
if: ${{ inputs.upload-coverage == true }}
run: rebar3 covertool generate

- name: Run test coverage conversion (lcov)
if: ${{ inputs.upload-coverage == true && inputs.use-coveralls == true }}
run: rebar3 lcov convert

- name: Upload coverage statistics (codecov)
if: ${{ inputs.upload-coverage == true }}
uses: codecov/codecov-action@v3
with:
fail_ci_if_error: true
files: _build/test/covertool/*.covertool.xml
run: rebar3 lcov convert

- name: Upload coverage statistics (coveralls)
if: ${{ inputs.upload-coverage == true && inputs.use-coveralls == true }}
uses: coverallsapp/github-action@1.1.3
if: ${{ inputs.upload-coverage == true }}
uses: coverallsapp/github-action@v2.2.3
with:
path-to-lcov: _build/test/lcov/lcov.info
github-token: ${{ secrets.GITHUB_TOKEN }}
10 changes: 5 additions & 5 deletions .github/workflows/erlang-simple-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,9 @@ jobs:
if: ${{ inputs.run-eunit == true || inputs.run-common-test == true }}
run: rebar3 covertool generate

- name: Upload coverage statistics
if: ${{ inputs.run-eunit == true || inputs.run-common-test == true }}
uses: codecov/codecov-action@v3
- name: Upload coverage statistics (coveralls)
if: ${{ inputs.upload-coverage == true }}
uses: coverallsapp/github-action@v2.2.3
with:
fail_ci_if_error: true
files: _build/test/covertool/*.covertool.xml
path-to-lcov: _build/test/lcov/lcov.info
github-token: ${{ secrets.GITHUB_TOKEN }}