Skip to content

Commit

Permalink
Fix up CI
Browse files Browse the repository at this point in the history
  • Loading branch information
dereuromark committed Jan 17, 2023
1 parent 87a3d49 commit 874f698
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:
strategy:
fail-fast: false
matrix:
php-version: ['7.3', '8.2']
php-version: ['7.4', '8.2']
prefer-lowest: ['']
include:
- php-version: '7.3'
- php-version: '7.4'
prefer-lowest: 'prefer-lowest'

steps:
Expand Down Expand Up @@ -53,19 +53,19 @@ jobs:
fi
- name: Configure PHPUnit matcher
if: matrix.php-version == '7.3'
if: matrix.php-version == '7.4'
uses: mheap/phpunit-matcher-action@main

- name: Run PHPUnit
run: |
if [[ ${{ matrix.php-version }} == '7.3' ]]; then
if [[ ${{ matrix.php-version }} == '7.4' ]]; then
export CODECOVERAGE=1 && vendor/bin/phpunit --verbose --coverage-clover=coverage.xml
else
vendor/bin/phpunit
fi
- name: Submit code coverage
if: success() && matrix.php-version == '7.3'
if: success() && matrix.php-version == '7.4'
uses: codecov/codecov-action@v3

cs-stan:
Expand All @@ -78,7 +78,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.3'
php-version: '7.4'
extensions: mbstring, intl
tools: cs2pr
coverage: none
Expand All @@ -105,4 +105,4 @@ jobs:

- name: Run phpstan
if: success() || failure()
run: vendor/bin/phpstan.phar analyse --error-format=github
run: vendor/bin/phpstan analyse --error-format=github
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
}
],
"require":{
"php": ">=7.3",
"php": ">=7.4",
"cakephp/cakephp": "^4.2"
},
"require-dev": {
Expand Down

0 comments on commit 874f698

Please sign in to comment.