diff --git a/.github/workflows/erlang-parallel-build.yml b/.github/workflows/erlang-parallel-build.yml index 0443f4e..0220b15 100644 --- a/.github/workflows/erlang-parallel-build.yml +++ b/.github/workflows/erlang-parallel-build.yml @@ -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.' @@ -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 }} diff --git a/.github/workflows/erlang-simple-build.yml b/.github/workflows/erlang-simple-build.yml index 820c7ee..8a31b89 100644 --- a/.github/workflows/erlang-simple-build.yml +++ b/.github/workflows/erlang-simple-build.yml @@ -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 }}