Skip to content

Commit

Permalink
Fix `Syntax error or access violation: 1305 SAVEPOINT DOCTRINE2_SAVEP…
Browse files Browse the repository at this point in the history
…OINT_3 does not exist`

see dmaicher/doctrine-test-bundle#58 (comment)
  • Loading branch information
nanasess committed May 24, 2022
1 parent d1e4422 commit 2fd09d4
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,25 @@ jobs:
bin/console doctrine:schema:create
bin/console eccube:fixtures:load
- name: PHPUnit
env:
APP_ENV: 'test'
DATABASE_URL: ${{ matrix.database_url }}
DATABASE_SERVER_VERSION: ${{ matrix.database_server_version }}
MAILER_URL: 'smtp://127.0.0.11025'
run: bin/phpunit --exclude-group cache-clear,cache-clear-install,update-schema-doctrine
## XXX MySQL で Syntax error or access violation: 1305 SAVEPOINT DOCTRINE2_SAVEPOINT_3 does not exist が
## 発生するため \DAMA\DoctrineTestBundle\PHPUnit\PHPUnitListener を削除する
## see https://github.com/dmaicher/doctrine-test-bundle/issues/58#issuecomment-391081408
- run: sed -e '/DoctrineTestBundle/d' phpunit.xml.dist > phpunit.xml
if: ${{ matrix.db == 'mysql' }}
- name: PHPUnit
env:
APP_ENV: 'test'
DATABASE_URL: ${{ matrix.database_url }}
DATABASE_SERVER_VERSION: ${{ matrix.database_server_version }}
MAILER_URL: 'smtp://127.0.0.11025'
run: |
bin/phpunit --exclude-group cache-clear,cache-clear-install,update-schema-doctrine
bin/phpunit --group cache-clear
bin/phpunit --group cache-clear-install
bin/phpunit --group update-schema-doctrine --exclude-group update-schema-doctrine-install
Expand Down

0 comments on commit 2fd09d4

Please sign in to comment.