Skip to content

Commit

Permalink
ci: Update configuration files.
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Jul 13, 2022
1 parent 1c1add4 commit 16b0c24
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 14 deletions.
16 changes: 2 additions & 14 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
fail-fast: false
matrix:
operating-system: [ubuntu-latest, windows-latest, macOS-latest]
php-versions: ['7.4']
php-versions: ['7.4', '8.1']

steps:
- name: Set git to use LF
Expand All @@ -38,7 +38,7 @@ jobs:
run: echo "::set-output name=dir::$(composer config cache-files-dir)"

- name: Cache dependencies
uses: actions/cache@v3
uses: actions/cache@v3.0.5
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
Expand All @@ -61,15 +61,3 @@ jobs:
wget https://scrutinizer-ci.com/ocular.phar
php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml
continue-on-error: true

- name: Infection score report
run: |
vendor/bin/infection run -j 2
continue-on-error: true

- name: PHP Insights report
run: |
rm -rf composer.lock vendor
composer require nunomaduro/phpinsights --dev
vendor/bin/phpinsights analyse src/ -n
continue-on-error: true
3 changes: 3 additions & 0 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
build:
nodes:
analysis:
environment:
php:
version: 7.4
tests:
override:
- php-scrutinizer-run
Expand Down

0 comments on commit 16b0c24

Please sign in to comment.