Skip to content

Commit

Permalink
GitHub Actions でE2Eテストがエラーになる対策
Browse files Browse the repository at this point in the history
- Symfony によって session.save_path が設定される前に GC が実行される模様
- ローカルWebサーバー起動時に session.save_path を明示的に指定
- see EC-CUBE#4541 (comment)
  • Loading branch information
nanasess committed Jun 12, 2020
1 parent 965e04c commit edbb726
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ jobs:
DATABASE_SERVER_VERSION: ${{ matrix.database_server_version }}
MAILER_URL: 'smtp://localhost:1025'
ECCUBE_PACKAGE_API_URL: 'http://localhost:8080'
run: php -S localhost:8000 &
run: php -dsession.save_path=${GITHUB_WORKSPACE}/var/sessions/${APP_ENV} -S localhost:8000 &

- name: Codeception
env:
Expand Down Expand Up @@ -320,7 +320,7 @@ jobs:
DATABASE_SERVER_VERSION: ${{ matrix.database_server_version }}
MAILER_URL: 'smtp://localhost:1025'
ECCUBE_PACKAGE_API_URL: 'http://localhost:8080'
run: php -S localhost:8000 &
run: php -dsession.save_path=${GITHUB_WORKSPACE}/var/sessions/${APP_ENV} -S localhost:8000 &

## ${PWD}/repos does not exist so service cannot be started
- name: Run package-api
Expand Down Expand Up @@ -449,7 +449,7 @@ jobs:
DATABASE_SERVER_VERSION: ${{ matrix.database_server_version }}
MAILER_URL: 'smtp://localhost:1025'
ECCUBE_PACKAGE_API_URL: 'http://localhost:8080'
run: php -S localhost:8000 &
run: php -dsession.save_path=${GITHUB_WORKSPACE}/var/sessions/${APP_ENV} -S localhost:8000 &

## ${PWD}/repos does not exist so service cannot be started
- name: Run package-api
Expand Down Expand Up @@ -578,7 +578,7 @@ jobs:
DATABASE_SERVER_VERSION: ${{ matrix.database_server_version }}
MAILER_URL: 'smtp://localhost:1025'
ECCUBE_PACKAGE_API_URL: 'http://localhost:8080'
run: php -S localhost:8000 &
run: php -dsession.save_path=${GITHUB_WORKSPACE}/var/sessions/${APP_ENV} -S localhost:8000 &

## ${PWD}/repos does not exist so service cannot be started
- name: Run package-api
Expand Down Expand Up @@ -709,7 +709,7 @@ jobs:
DATABASE_SERVER_VERSION: ${{ matrix.database_server_version }}
MAILER_URL: 'smtp://localhost:1025'
ECCUBE_PACKAGE_API_URL: 'http://localhost:8080'
run: php -S localhost:8000 &
run: php -dsession.save_path=${GITHUB_WORKSPACE}/var/sessions/${APP_ENV} -S localhost:8000 &

## ${PWD}/repos does not exist so service cannot be started
- name: Run package-api
Expand Down

0 comments on commit edbb726

Please sign in to comment.