Skip to content

Commit

Permalink
[*]: try to fix CI errors
Browse files Browse the repository at this point in the history
  • Loading branch information
voku committed Mar 28, 2021
1 parent 8b6ba81 commit 6e965bb
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ jobs:

- name: Install dependencies
run: |
composer require php-coveralls/php-coveralls --no-update
if [[ "${{ matrix.php }}" == "7.4" ]]; then
composer require phpstan/phpstan --no-update
fi;
Expand All @@ -81,18 +79,22 @@ jobs:
run: |
php vendor/bin/phpstan analyse
- name: scrutinizer-ci
continue-on-error: true
- name: Upload coverage results to Coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
export TRAVIS=$CI
export TRAVIS_JOB_ID=$GITHUB_RUN_ID
composer global require php-coveralls/php-coveralls
php-coveralls --coverage_clover=build/logs/clover.xml -v
wget -q https://scrutinizer-ci.com/ocular.phar
php vendor/bin/php-coveralls -v
php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml
bash <(curl -s https://codecov.io/bash)
- name: Upload coverage results to Codecov
uses: codecov/codecov-action@v1
with:
files: build/logs/clover.xml

- name: Upload coverage results to Scrutinizer
uses: sudo-bot/action-scrutinizer@latest
with:
cli-args: "--format=php-clover build/logs/clover.xml"

- name: Archive logs artifacts
if: ${{ failure() }}
Expand Down

0 comments on commit 6e965bb

Please sign in to comment.