Skip to content

Commit b7d8f3c

Browse files
committed
Update ci configuration
1 parent 509bf02 commit b7d8f3c

File tree

1 file changed

+21
-6
lines changed

1 file changed

+21
-6
lines changed

.github/workflows/blank.yml

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,14 @@ jobs:
2020
run: |
2121
docker version
2222
docker-compose version
23+
- name: Debug if needed
24+
run: |
25+
export DEBUG=${DEBUG:-false}
26+
if [[ "$DEBUG" == "true" ]]; then
27+
env
28+
fi
29+
env:
30+
DEBUG: ${{secrets.DEBUG}}
2331
- name: Build docker images
2432
run: |
2533
docker-compose build --build-arg PHP_VERSION=${{ matrix.php }}
@@ -28,9 +36,16 @@ jobs:
2836
docker-compose run --rm tests composer install --no-interaction
2937
- name: Generating code coverage
3038
run: |
31-
docker-compose run --rm tests ./vendor/bin/phpunit --coverage-php ./coverage.cov
32-
- name: Coveralls Parallel
33-
uses: coverallsapp/github-action@master
34-
with:
35-
github-token: ${{ secrets.github_token }}
36-
path-to-lcov: ./coverage.cov
39+
docker-compose run --rm tests mkdir -p build/logs
40+
docker-compose run --rm tests ./vendor/bin/phpunit --coverage-clover build/logs/clover.xml
41+
- name: Send coveralls
42+
run: |
43+
docker-compose run --rm tests mkdir -p build/logs
44+
docker-compose run --rm \
45+
-e COVERALLS_REPO_TOKEN=${COVERALLS_REPO_TOKEN} \
46+
-e COVERALLS_RUN_LOCALLY=${COVERALLS_RUN_LOCALLY} \
47+
tests \
48+
vendor/bin/php-coveralls -v
49+
env:
50+
COVERALLS_RUN_LOCALLY: ${{secrets.COVERALLS_RUN_LOCALLY}}
51+
COVERALLS_REPO_TOKEN: ${{secrets.COVERALLS_REPO_TOKEN}}

0 commit comments

Comments
 (0)