Skip to content

Commit e9b74e1

Browse files
committed
Update code coverage configuration
1 parent b3f5cee commit e9b74e1

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

.github/workflows/continuous-integration.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -61,19 +61,18 @@ jobs:
6161
- name: "Install Ruby dependencies"
6262
run: |
6363
gem install bashcov
64-
gem install codecov
64+
gem install simplecov-cobertura
6565
- name: "Set up PHP"
6666
uses: "shivammathur/setup-php@v2"
6767
with:
6868
php-version: "latest"
69-
tools: "composer:v2"
7069
coverage: "none"
7170
- name: "Run expect tests"
7271
run: "bashcov --root ./bin -- ./tests/test_helper/bats/bin/bats tests/"
7372
- name: "Publish coverage report to Codecov"
7473
uses: "codecov/codecov-action@v5"
7574
with:
76-
files: "./bin/coverage/codecov-result.json"
75+
files: "./bin/coverage/coverage.xml"
7776

7877
static-analysis:
7978
name: "Static analysis"

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
**/vendor/
2+
/bin/coverage/
23
/coverage/
34
/tests/expect/**.txt

.simplecov

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
require 'codecov'
21
require 'simplecov'
2+
require 'simplecov-cobertura'
33

4-
SimpleCov.formatter = Codecov::SimpleCov::Formatter
4+
# Creates a `coverage/coverage.xml` file
5+
SimpleCov.formatter = SimpleCov::Formatter::CoberturaFormatter

0 commit comments

Comments
 (0)