Skip to content

Commit 98583a1

Browse files
committed
Remove Coveralls integration due to outages
Before this patch, the project reported code coverage to Coveralls after each build, but the service’s outages caused CI failures. After this patch, all Coveralls-related configuration, dependencies, and CI steps have been removed to ensure builds run reliably without external coverage reporting interruptions.
1 parent b27b2ad commit 98583a1

File tree

3 files changed

+20
-14
lines changed

3 files changed

+20
-14
lines changed

.github/workflows/test.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
env:
77
GIT_CONFIG_GLOBAL: "/root/.gitconfig" # fix path in container (https://github.com/actions/runner/issues/2033)
88

9+
defaults:
10+
run:
11+
shell: "bash"
12+
913
jobs:
1014

1115
### LINT ###
@@ -47,14 +51,16 @@ jobs:
4751
- uses: "actions/checkout@v4"
4852

4953
- name: "Measuring test coverage"
50-
run: "make test/cover"
51-
52-
- name: "Upload coverage to Coveralls"
53-
uses: "coverallsapp/github-action@v2"
54-
with:
55-
github-token: ${{ secrets.GITHUB_TOKEN }}
56-
file: "coverage.out"
57-
format: "golang"
54+
run: "make test/cover | tee coverage.log; exit ${PIPESTATUS[0]}"
55+
56+
- name: "Upload coverage to badge"
57+
if: "${{ github.ref_name == github.event.repository.default_branch }}"
58+
env:
59+
BADGEN_TOKEN: ${{ secrets.BADGEN_TOKEN }}
60+
run: |
61+
RESULT=$(grep -E 'total:\s+\(statements\)\s+[0-9]+\.[0-9]+%' coverage.log | grep -Eo '[0-9]+\.[0-9]+%' | sed 's/%/%25/g')
62+
curl -LX PUT --header "Authorization: Bearer ${BADGEN_TOKEN}" \
63+
"https://badgen.net/memo/tarantool-sdvg-coverage-master/coverage/${RESULT}/green"
5864
5965
### PERFORMANCE ###
6066

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
[pre-release-badge]: https://badgen.net/static/pre-release/latest/orange?color=purple
1717
[pre-release-url]: https://github.com/tarantool/sdvg/releases/tag/latest/
1818
[actions-badge]: https://badgen.net/github/checks/tarantool/sdvg/master
19-
[actions-url]: https://github.com/tarantool/sdvg/actions
20-
[test-coverage-badge]: https://badgen.net/coveralls/c/github/tarantool/sdvg/master
21-
[test-coverage-url]: https://coveralls.io/github/tarantool/sdvg?branch=master
19+
[actions-url]: https://github.com/tarantool/sdvg/actions?query=branch%3Amaster
20+
[test-coverage-badge]: https://badgen.net/memo/tarantool-sdvg-coverage-master
21+
[test-coverage-url]: https://github.com/tarantool/sdvg/actions?query=branch%3Amaster
2222
[language-badge]: https://badgen.net/static/language/go/blue
2323
[language-url]: https://github.com/tarantool/sdvg/search?l=go
2424
[license-badge]: https://badgen.net/github/license/tarantool/sdvg?color=cyan

README.ru.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
[pre-release-badge]: https://badgen.net/static/pre-release/latest/orange?color=purple
1717
[pre-release-url]: https://github.com/tarantool/sdvg/releases/tag/latest/
1818
[actions-badge]: https://badgen.net/github/checks/tarantool/sdvg/master
19-
[actions-url]: https://github.com/tarantool/sdvg/actions
20-
[test-coverage-badge]: https://badgen.net/coveralls/c/github/tarantool/sdvg/master
21-
[test-coverage-url]: https://coveralls.io/github/tarantool/sdvg?branch=master
19+
[actions-url]: https://github.com/tarantool/sdvg/actions?query=branch%3Amaster
20+
[test-coverage-badge]: https://badgen.net/memo/tarantool-sdvg-coverage-master
21+
[test-coverage-url]: https://github.com/tarantool/sdvg/actions?query=branch%3Amaster
2222
[language-badge]: https://badgen.net/static/language/go/blue
2323
[language-url]: https://github.com/tarantool/sdvg/search?l=go
2424
[license-badge]: https://badgen.net/github/license/tarantool/sdvg?color=cyan

0 commit comments

Comments
 (0)