Skip to content

Commit 0cd74d3

Browse files
committed
test: adjustments to the testing suite (code coverage)
Refs phalcon#17
1 parent e9a01d8 commit 0cd74d3

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

.github/workflows/testing-suite.yml

+12-10
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,12 @@ jobs:
8383
- name: Run unit tests
8484
run: vendor/bin/codecept run --ext DotReporter unit --coverage --coverage-xml
8585

86-
- name: Code Coverage unit tests
87-
run: php ./bin/ocular.phar code-coverage:upload --format=php-clover ./tests/_output/coverage.xml
86+
- name: Codecov code coverage - unit
87+
if: success()
88+
uses: codecov/codecov-action@v1
89+
with:
90+
token: ${{secrets.CODECOV_TOKEN}}
91+
file: ./tests/_output/coverage.xml
8892

8993
# - name: Code Coverage - Codacy
9094
# uses: codacy/codacy-coverage-reporter-action@master
@@ -98,8 +102,12 @@ jobs:
98102
DATA_MEMCACHED_PORT: ${{ job.services.memcached.ports['11211'] }}
99103
run: vendor/bin/codecept run --ext DotReporter integration --coverage --coverage-xml
100104

101-
- name: Code Coverage integration tests
102-
run: php ./bin/ocular.phar code-coverage:upload --format=php-clover ./tests/_output/coverage.xml
105+
- name: Codecov code coverage - integration
106+
if: success()
107+
uses: codecov/codecov-action@v1
108+
with:
109+
token: ${{secrets.CODECOV_TOKEN}}
110+
file: ./tests/_output/coverage.xml
103111

104112
# - name: Run database tests MySQL
105113
# env:
@@ -132,9 +140,3 @@ jobs:
132140
## DATA_REDIS_PORT: ${{ job.services.redis.ports['6379'] }}
133141
## DATA_MEMCACHED_PORT: ${{ job.services.memcached.ports['11211'] }}
134142
## run: vendor/bin/codecept run --ext DotReporter database --env sqlsrv
135-
- name: Upload coverage to Codecov
136-
if: success()
137-
uses: codecov/codecov-action@v1
138-
with:
139-
token: ${{secrets.CODECOV_TOKEN}}
140-
file: ./tests/_output/coverage.xml

bin/ocular.phar

-3.75 MB
Binary file not shown.

0 commit comments

Comments
 (0)