Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
flohdez authored Jan 9, 2024
1 parent 682153a commit 2a54789
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ name: CI

on:
push:

pull_request:
branches:
- '*'

jobs:
testsuite:
Expand Down Expand Up @@ -65,8 +68,8 @@ jobs:
if [[ ${{ matrix.db-type }} == 'sqlite' ]]; then export DB_URL='sqlite:///:memory:'; fi
if [[ ${{ matrix.db-type }} == 'mysql' ]]; then export DB_URL='mysql://root:[email protected]/cakephp?encoding=utf8'; fi
if [[ ${{ matrix.db-type }} == 'pgsql' ]]; then export DB_URL='postgres://postgres:[email protected]/postgres'; fi
if [[ ${{ matrix.php-version }} == '7.4' ]]; then
export CODECOVERAGE=1 && vendor/bin/phpunit --verbose --coverage-clover=coverage.xml
if [[ ${{ matrix.php-version }} == '8.1' ]]; then
export CODECOVERAGE=1 && vendor/bin/phpunit --display-deprecations --display-incomplete --display-skipped --coverage-clover=coverage.xml
else
vendor/bin/phpunit
fi
Expand Down Expand Up @@ -109,14 +112,11 @@ jobs:

- name: Run PHP CodeSniffer
run: composer cs-check
continue-on-error: true

- name: Run psalm
if: success() || failure()
run: composer psalm
continue-on-error: true

- name: Run phpstan
if: success() || failure()
run: composer stan
continue-on-error: true

0 comments on commit 2a54789

Please sign in to comment.