Skip to content

Commit

Permalink
e2e,e2e-throtlling
Browse files Browse the repository at this point in the history
  • Loading branch information
chihiro-adachi committed May 22, 2024
1 parent f3fe87d commit 4939200
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 9 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/e2e-test-throttling.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,21 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [ 8.3 ]
db: [ pgsql ]
php: [ 8.1, 8.2, 8.3 ]
db: [ pgsql12, pgsql16, mysql ]
method: [ フロント画面ログイン_IP, フロント画面ログイン_会員, 管理画面ログイン_IP, 管理画面ログイン_会員, 会員登録, 問い合わせ, パスワード再発行, 注文確認_非会員購入, 注文確認_会員購入, 注文完了_非会員購入, 注文完了_会員購入, 会員情報編集, 配送先情報_追加, 配送先情報_編集, 配送先情報_削除, order_お届け先追加, order_お届け先変更, 新規会員登録_入力, 管理画面二段階認証 ]
include:
- db: pgsql
- db: pgsql12
database_url: postgres://postgres:password@127.0.0.1:5432/eccube_db
database_server_version: 14
database_server_version: 12
- db: pgsql16
database_url: postgres://postgres:password@127.0.0.1:5436/eccube_db
database_server_version: 16
- db: mysql
database_url: mysql://root:password@127.0.0.1:3306/eccube_db
database_server_version: 8
database_charset: utf8

services:
postgres:
image: postgres:14
Expand Down Expand Up @@ -102,6 +110,7 @@ jobs:
APP_ENV: 'prod'
DATABASE_URL: ${{ matrix.database_url }}
DATABASE_SERVER_VERSION: ${{ matrix.database_server_version }}
DATABASE_CHARSET: ${{ matrix.database_charset }}
run: |
echo "APP_ENV=${APP_ENV}" > .env
echo "TRUSTED_HOSTS=127.0.0.1,localhost" >> .env
Expand All @@ -128,6 +137,7 @@ jobs:
APP_ENV: 'prod'
DATABASE_URL: ${{ matrix.database_url }}
DATABASE_SERVER_VERSION: ${{ matrix.database_server_version }}
DATABASE_CHARSET: ${{ matrix.database_charset }}
MAILER_DSN: 'smtp://127.0.0.1:1025'
ECCUBE_PACKAGE_API_URL: 'http://127.0.0.1:8080'
run: php -S 127.0.0.1:8000 codeception/router.php &
Expand All @@ -137,6 +147,7 @@ jobs:
APP_ENV: 'prod'
DATABASE_URL: ${{ matrix.database_url }}
DATABASE_SERVER_VERSION: ${{ matrix.database_server_version }}
DATABASE_CHARSET: ${{ matrix.database_charset }}
MAILER_DSN: 'smtp://127.0.0.1:1025'
ECCUBE_PACKAGE_API_URL: 'http://127.0.0.1:8080'
METHOD: ${{ matrix.method }}
Expand Down
40 changes: 35 additions & 5 deletions .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,22 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [ 8.3 ]
db: [ pgsql ]
php: [ 8.1, 8.2, 8.3 ]
db: [ pgsql12, pgsql16, mysql ]
group: [ 'admin01', 'admin02', 'admin03', 'front', 'restrict-fileupload', 'installer' ]
include:
- db: pgsql
- db: pgsql12
database_url: postgres://postgres:password@127.0.0.1:5432/eccube_db
database_server_version: 14
database_server_version: 12
database_charset: utf8mb4
- db: pgsql16
database_url: postgres://postgres:password@127.0.0.1:5436/eccube_db
database_server_version: 16
database_charset: utf8
- db: mysql
database_url: mysql://root:password@127.0.0.1:3306/eccube_db
database_server_version: 8
database_charset: utf8
- group: 'admin01'
app_env: 'codeception'
- group: 'admin02'
Expand All @@ -40,14 +49,30 @@ jobs:
app_env: 'install'
services:
postgres:
image: postgres:14
image: postgres:12
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
ports:
- 5432:5432
# needed because the postgres container does not provide a healthcheck
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
postgres16:
image: postgres:16
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
ports:
- 5436:5432
# needed because the postgres container does not provide a healthcheck
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
mysql:
image: mysql:8
env:
MYSQL_ROOT_PASSWORD: password
ports:
- 3306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3

mailcatcher:
image: schickling/mailcatcher
Expand All @@ -72,6 +97,7 @@ jobs:
APP_ENV: ${{ matrix.app_env }}
DATABASE_URL: ${{ matrix.database_url }}
DATABASE_SERVER_VERSION: ${{ matrix.database_server_version }}
DATABASE_CHARSET: ${{ matrix.database_charset }}
run: |
echo "APP_ENV=${APP_ENV}" > .env
echo "TRUSTED_HOSTS=127.0.0.1,localhost" >> .env
Expand Down Expand Up @@ -108,6 +134,7 @@ jobs:
APP_ENV: 'codeception'
DATABASE_URL: ${{ matrix.database_url }}
DATABASE_SERVER_VERSION: ${{ matrix.database_server_version }}
DATABASE_CHARSET: ${{ matrix.database_charset }}
MAILER_DSN: 'smtp://127.0.0.1:1025'
ECCUBE_PACKAGE_API_URL: 'http://127.0.0.1:8080'
run: php -S 127.0.0.1:8000 codeception/router.php &
Expand All @@ -118,6 +145,7 @@ jobs:
APP_ENV: 'codeception'
DATABASE_URL: ${{ matrix.database_url }}
DATABASE_SERVER_VERSION: ${{ matrix.database_server_version }}
DATABASE_CHARSET: ${{ matrix.database_charset }}
MAILER_DSN: 'smtp://127.0.0.1:1025'
ECCUBE_PACKAGE_API_URL: 'http://127.0.0.1:8080'
ECCUBE_RESTRICT_FILE_UPLOAD: '1'
Expand All @@ -129,6 +157,7 @@ jobs:
APP_ENV: ${{ matrix.app_env }}
DATABASE_URL: ${{ matrix.database_url }}
DATABASE_SERVER_VERSION: ${{ matrix.database_server_version }}
DATABASE_CHARSET: ${{ matrix.database_charset }}
MAILER_DSN: 'smtp://127.0.0.1:1025'
ECCUBE_PACKAGE_API_URL: 'http://127.0.0.1:8080'
GROUP: ${{ matrix.group }}
Expand All @@ -143,6 +172,7 @@ jobs:
APP_ENV: ${{ matrix.app_env }}
DATABASE_URL: ${{ matrix.database_url }}
DATABASE_SERVER_VERSION: ${{ matrix.database_server_version }}
DATABASE_CHARSET: ${{ matrix.database_charset }}
MAILER_DSN: 'smtp://127.0.0.1:1025'
ECCUBE_PACKAGE_API_URL: 'http://127.0.0.1:8080'
GROUP: ${{ matrix.group }}
Expand Down

0 comments on commit 4939200

Please sign in to comment.