File tree Expand file tree Collapse file tree 1 file changed +21
-6
lines changed Expand file tree Collapse file tree 1 file changed +21
-6
lines changed Original file line number Diff line number Diff line change 20
20
run : |
21
21
docker version
22
22
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}}
23
31
- name : Build docker images
24
32
run : |
25
33
docker-compose build --build-arg PHP_VERSION=${{ matrix.php }}
28
36
docker-compose run --rm tests composer install --no-interaction
29
37
- name : Generating code coverage
30
38
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}}
You can’t perform that action at this time.
0 commit comments