Skip to content

Commit 414c258

Browse files
committed
Update CI configuration.
1 parent e69c2e1 commit 414c258

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
3434

3535
- name: Cache dependencies
36-
uses: actions/cache@v1
36+
uses: actions/cache@v2
3737
with:
3838
path: ${{ steps.composer-cache.outputs.dir }}
3939
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
@@ -43,14 +43,28 @@ jobs:
4343
run: composer install --no-progress --no-suggest --prefer-dist --optimize-autoloader
4444

4545
- name: Run Grumphp
46-
run: vendor/bin/grumphp run
46+
run: vendor/bin/grumphp run --no-ansi -n
4747
env:
4848
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}
4949

5050
- name: Send PSALM data
5151
run: vendor/bin/psalm --shepherd --stats
5252
continue-on-error: true
5353

54-
- name: Scrutinizer
55-
run: vendor/bin/ocular code-coverage:upload --format=php-clover build/logs/clover.xml
54+
- name: Send Scrutinizer data
55+
run: |
56+
wget https://scrutinizer-ci.com/ocular.phar
57+
php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml
58+
continue-on-error: true
59+
60+
- name: Infection score report
61+
run: |
62+
vendor/bin/infection run -j 2
63+
continue-on-error: true
64+
65+
- name: PHP Insights report
66+
run: |
67+
rm -rf composer.lock vendor
68+
composer require nunomaduro/phpinsights --dev
69+
vendor/bin/phpinsights analyse src/ -n
5670
continue-on-error: true

0 commit comments

Comments
 (0)