Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Symfony6対応 #6073

Merged
merged 117 commits into from
Feb 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
117 commits
Select commit Hold shift + click to select a range
6880761
fix: #6008 doctrineのconfigにdefault_connectionを追加
tao-s Jun 7, 2023
419bc8c
php8.1+
chihiro-adachi Nov 29, 2023
6c7c492
codeception4 -> codeception5
chihiro-adachi Nov 29, 2023
8cdac2e
Fix [ConfigurationException] actor setting is missing in suite config…
chihiro-adachi Nov 29, 2023
4af8702
Fix Declaration of AcceptanceTester::getScenario() must be compatible…
chihiro-adachi Nov 29, 2023
8f2acf6
Fix [TypeError] AcceptanceTester::waitForText(): Argument #2 ($timeou…
chihiro-adachi Nov 29, 2023
b5efcc5
Fix [TypeError] Codeception\Constraint\Page::__construct(): Argument …
chihiro-adachi Nov 29, 2023
55a612e
Fix [TypeError] strpos(): Argument #1 ($haystack) must be of type str…
chihiro-adachi Dec 4, 2023
9334533
chromeOptions -> goog:chromeOptions
chihiro-adachi Dec 4, 2023
8b3687f
何故か変数展開されない
chihiro-adachi Dec 4, 2023
51fdff8
Fix PHPStan
chihiro-adachi Dec 4, 2023
abaef3c
php8.1のイメージに変更
chihiro-adachi Dec 4, 2023
f547034
symfony5 -> symfony6
chihiro-adachi Dec 4, 2023
5a587a6
Fix Rate limiter "shopping_checkout_customer" requires the Lock compo…
chihiro-adachi Dec 4, 2023
0a0cc26
symfony6へのアップデートに伴う型宣言の追加
chihiro-adachi Dec 4, 2023
b93ad9c
Fix Error: Class Eccube\Security\Core\User\Customer/MemberProvider co…
chihiro-adachi Dec 5, 2023
b42281c
Fix "Removed LogoutSuccessHandlerInterface and LogoutHandlerInterface…
chihiro-adachi Dec 5, 2023
20db632
PasswordEncoder -> PasswordHasher
chihiro-adachi Dec 5, 2023
c610fd8
Fix Compile Error: Declaration of Eccube\Entity\Member|Customer::getR…
chihiro-adachi Dec 5, 2023
96d9247
Fix Error: Class Eccube\Entity\Member|Customer contains 1 abstract me…
chihiro-adachi Dec 5, 2023
9d6ffc5
Fix "Remove AuthenticationEvents::AUTHENTICATION_FAILURE, use the Log…
chihiro-adachi Dec 5, 2023
c954f0a
Fix "Drop support for SessionInterface $session as constructor argume…
chihiro-adachi Dec 5, 2023
9b62f2d
Fix "Removed the Psr\Container\ContainerInterface and Symfony\Compone…
chihiro-adachi Dec 5, 2023
8c0c473
Fix "Drop support for SessionInterface $session as constructor argume…
chihiro-adachi Dec 5, 2023
937ae81
PasswordEncoder -> PasswordHasher / Fix "Remove the security.encoder_…
chihiro-adachi Dec 7, 2023
6fa272b
Fix "Cannot autowire service "Eccube\Controller\ShoppingController": …
chihiro-adachi Dec 7, 2023
57bb47a
Fix "Removed the Psr\Container\ContainerInterface and Symfony\Compone…
chihiro-adachi Dec 13, 2023
443e156
Fix "Package easycorp/easy-log-handler is abandoned"
chihiro-adachi Dec 13, 2023
edfbd27
Fix "In RequestStack.php line 107: There is currently no session avai…
chihiro-adachi Dec 13, 2023
f43b4d6
Symfony標準のセッションハンドラを利用する
chihiro-adachi Dec 13, 2023
0986212
Fix "Eccube\Service\OrderStateMachine::__construct(): Argument #1 ($_…
chihiro-adachi Dec 13, 2023
526008c
Fix "Remove DoctrineProvider and DoctrineAdapter because these classe…
chihiro-adachi Dec 13, 2023
22123e5
Fix "MicroKernelTrait::configureRoutes() is now always called with a …
chihiro-adachi Dec 13, 2023
4e3616b
Fix "[Semantical Error] The annotation "@Doctrine\ORM\Mapping\Table" …
chihiro-adachi Dec 13, 2023
dfb6863
PasswordEncoder -> PasswordHasher
chihiro-adachi Dec 14, 2023
39c56af
Fix "Remove `framework.session.storage_id` configuration option, use …
chihiro-adachi Dec 14, 2023
9acf28e
Fix return type
chihiro-adachi Dec 14, 2023
0e9c47c
Fix "Remove the session.storage alias and session.storage.* services,…
chihiro-adachi Dec 14, 2023
e15b812
Fix "Fatal error: Declaration of Eccube\Tests\Repository\DummyCustome…
chihiro-adachi Dec 14, 2023
888ab82
Fix "Fatal error: Class Eccube\Tests\Repository\DummyCustomer contain…
chihiro-adachi Dec 14, 2023
603c7ff
Fix "Symfony\Component\DependencyInjection\Exception\ServiceNotFoundE…
chihiro-adachi Dec 17, 2023
f27b4a3
セッションの生成をスキップ
chihiro-adachi Dec 17, 2023
484add4
Fix "LogicException: Booting the kernel before calling "Symfony\Bundl…
chihiro-adachi Dec 18, 2023
e49cc03
Fix "LogicException: Booting the kernel before calling "Symfony\Bundl…
chihiro-adachi Dec 18, 2023
9160c52
Fix "TypeError: Eccube\Common\EccubeConfig::__construct(): Argument #…
chihiro-adachi Dec 18, 2023
cb4eb6e
Fix "Error: Access to undeclared static property Eccube\Tests\Form\Ty…
chihiro-adachi Dec 18, 2023
5d86c1b
Fix "Symfony\Component\DependencyInjection\Exception\ServiceNotFoundE…
chihiro-adachi Dec 18, 2023
5d5ea20
ログインできない問題を修正
chihiro-adachi Dec 18, 2023
644cdca
PHP8.1の不具合による問題を修正 https://github.com/symfony/symfony/issues/49091
chihiro-adachi Dec 18, 2023
46abc99
いったんスキップ
chihiro-adachi Dec 19, 2023
cef00fd
Fix "Attempted to call an undefined method named \"getFlashBag\""
chihiro-adachi Dec 19, 2023
7438da0
ログイン処理を修正
chihiro-adachi Dec 19, 2023
2f33f4b
Fix "Input value contains a non-scalar value"
chihiro-adachi Dec 19, 2023
25961b4
Fix "Symfony\Component\HttpFoundation\Exception\SessionNotFoundExcept…
chihiro-adachi Dec 19, 2023
81820e6
Fix PHPStan "Variable $value in empty() is never defined."
chihiro-adachi Dec 19, 2023
a01389f
Fix PHPStan "Call to an undefined method Eccube\Controller\AbstractCo…
chihiro-adachi Dec 19, 2023
2a45f95
Fix "TypeError: Symfony\Component\PasswordHasher\Hasher\UserPasswordH…
chihiro-adachi Dec 19, 2023
d6f57ec
Fix "Symfony\Component\HttpFoundation\Exception\SessionNotFoundExcept…
chihiro-adachi Dec 19, 2023
06cb56c
Fix "Symfony\Component\HttpFoundation\Exception\SessionNotFoundExcept…
chihiro-adachi Dec 19, 2023
a24a2b3
Fix "Symfony\Component\HttpFoundation\Exception\SessionNotFoundExcept…
chihiro-adachi Dec 20, 2023
e17b338
Fix "Removed the Psr\Container\ContainerInterface and Symfony\Compone…
chihiro-adachi Dec 20, 2023
88982e9
CustomerRepository::newCustomerに集約
chihiro-adachi Dec 20, 2023
fd174be
expectOutputRegexが動作しないため、internalResponseを使うように修正
chihiro-adachi Dec 20, 2023
666fed9
PasswordEncoder -> PasswordHasher
chihiro-adachi Dec 20, 2023
d1dc33f
Fix error message
chihiro-adachi Dec 20, 2023
b65aaa5
後続のPHPUnitを走らせるためいったんスキップ
chihiro-adachi Dec 20, 2023
5db700c
Fix "Symfony\Component\HttpFoundation\Exception\SessionNotFoundExcept…
chihiro-adachi Dec 20, 2023
600c7cb
service locatorの指定誤りを修正
chihiro-adachi Dec 20, 2023
2ae015a
不要なargumentsを削除
chihiro-adachi Dec 20, 2023
901ca0b
Fix "Removed the Psr\Container\ContainerInterface and Symfony\Compone…
chihiro-adachi Dec 20, 2023
00b40d2
Fix InstallController
chihiro-adachi Dec 21, 2023
9bc2fe4
Fix "setQueryCacheDriver is deprecated and will be removed in Doctrin…
chihiro-adachi Dec 21, 2023
92cec89
Fix "Problem: Feature was deprecated in doctrine/persistence 2.x and …
chihiro-adachi Dec 21, 2023
0bb74c2
Fix "Removed the Psr\Container\ContainerInterface and Symfony\Compone…
chihiro-adachi Dec 21, 2023
bfdc986
Fix "Error: Call to a member function getConnection() on null"
chihiro-adachi Dec 21, 2023
7ad74fe
Fix InstallController
chihiro-adachi Dec 21, 2023
1d96ce0
システム要件に合わせる
chihiro-adachi Dec 25, 2023
98e0b15
何故かsessionの設定変更が走る:"ini_set(): Session ini settings cannot be changed…
chihiro-adachi Dec 25, 2023
7863e8e
node visitorを使う
chihiro-adachi Dec 27, 2023
683bd89
twig2 -> twig3
chihiro-adachi Jan 9, 2024
e09e438
revert "Symfony標準のセッションハンドラを利用する"
chihiro-adachi Jan 10, 2024
20f5f4e
ログアウト時にトップページに遷移する問題を修正
chihiro-adachi Jan 10, 2024
66c9ce6
スキップしたテストを戻す
chihiro-adachi Jan 10, 2024
b887c5d
font追加
chihiro-adachi Jan 10, 2024
4c26253
二要素認証のログインに失敗する問題を修正
chihiro-adachi Jan 11, 2024
e3b8ab0
Fix "ini_set(): Session ini settings cannot be changed after headers …
chihiro-adachi Jan 11, 2024
4299915
service_locatorの呼び出しを追加
chihiro-adachi Jan 11, 2024
20cebcd
変更がわかりづらくなるのでプラグインを展開しておく
kiy0taka May 10, 2023
c6d04e4
Fix Namespace Symfony\Component\DependencyInjection\ContainerInterfac…
chihiro-adachi Jan 12, 2024
b6641ca
service_locatorの呼び出しを追加
chihiro-adachi Jan 12, 2024
5d376f5
プラグインのルーティングが読み込めない不具合を修正
chihiro-adachi Jan 16, 2024
7c328ad
Fix "Context: Using short namespace alias "LeagueOAuth2ServerBundle" …
chihiro-adachi Jan 17, 2024
c089b52
Fix "Uncaught Exception: You cannot use "Nyholm\Psr7\Factory\HttplugF…
chihiro-adachi Jan 17, 2024
9eb4ccc
composer update -W
chihiro-adachi Jan 17, 2024
a5cae46
TODO プラグインの修正が必要なためスキップ
chihiro-adachi Jan 17, 2024
dbdfc60
Merge remote-tracking branch 'origin/4.3' into dev/symfony6
chihiro-adachi Jan 17, 2024
1ee1283
実行時間に影響するため、テスト時は最小のコストに設定する
chihiro-adachi Jan 18, 2024
11c7a0e
PHP7.3の分岐は不要
chihiro-adachi Jan 23, 2024
84dac3e
composer update -W
chihiro-adachi Jan 23, 2024
8898249
update npm packages
chihiro-adachi Jan 23, 2024
1fa82ae
npm run build
chihiro-adachi Jan 23, 2024
8ee9b25
8.1〜8.3
chihiro-adachi Jan 30, 2024
84b4a46
Fix codeception
chihiro-adachi Jan 30, 2024
c1a5568
Merge remote-tracking branch 'origin/4.3' into dev/symfony6
chihiro-adachi Jan 30, 2024
3e1d7b7
パスワードのマイグレーションに対応
chihiro-adachi Jan 30, 2024
5124007
composer update -W
chihiro-adachi Jan 30, 2024
8a83398
Fix Namespace Symfony\Component\DependencyInjection\ContainerInterfac…
chihiro-adachi Jan 30, 2024
8491cc5
PluginManagerからEccubeConfigを呼び出せるように修正
chihiro-adachi Jan 30, 2024
e1b89c4
4.3.0-alpha
chihiro-adachi Jan 31, 2024
5223ce3
不要なコメントを削除
chihiro-adachi Feb 4, 2024
8e0bd8d
プログラミングのミスによる例外のためLogicExceptionに変更
chihiro-adachi Feb 4, 2024
b7feb8a
loadUserByUsernameからloadUserByIdentifierを呼ぶように修正
chihiro-adachi Feb 4, 2024
1a53dbb
8.2/8.3のイメージを作成
chihiro-adachi Feb 21, 2024
171143d
Merge remote-tracking branch 'origin/4.3' into 4.3-symfony6
chihiro-adachi Feb 21, 2024
ab290b6
Merge remote-tracking branch 'origin/4.3' into 4.3-symfony6
chihiro-adachi Feb 21, 2024
235143d
composer update -W
chihiro-adachi Feb 21, 2024
5a67424
メンテナンスモードの警告表示でテストに失敗していたのを修正
chihiro-adachi Feb 25, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
48 changes: 28 additions & 20 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [ 8.1 ]
php: [ 8.3 ]
db: [ pgsql ]
include:
- db: pgsql
Expand All @@ -44,10 +44,10 @@ jobs:
uses: nanasess/setup-php@master
with:
php-version: ${{ matrix.php }}

- name: Setup pcov
run: |
sudo apt-fast install -y php8.1-pcov
sudo apt-fast install -y php8.3-pcov
sudo phpenmod -s cli pcov

- name: Initialize Composer
Expand All @@ -70,7 +70,10 @@ jobs:
DATABASE_SERVER_VERSION: ${{ matrix.database_server_version }}
MAILER_URL: 'smtp://127.0.0.1:1025'
continue-on-error: true
run: php -dpcov.enabled=1 vendor/bin/phpunit --exclude-group cache-clear,cache-clear-install,update-schema-doctrine --coverage-clover=coverage1.xml
run: |
echo "session.save_path=$PWD/var/sessions/test" > php.ini
echo "memory_limit=512M" >> php.ini
php -c php.ini -dpcov.enabled=1 vendor/bin/phpunit --exclude-group cache-clear,cache-clear-install,update-schema-doctrine --coverage-clover=coverage1.xml
- name: Upload report
if: success()
uses: actions/upload-artifact@v2
Expand All @@ -83,7 +86,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [ 8.1 ]
php: [ 8.3 ]
db: [ pgsql ]
group: [ admin01, admin02, admin03, front, installer ]
include:
Expand Down Expand Up @@ -134,12 +137,23 @@ jobs:
APP_ENV: ${{ matrix.app_env }}
DATABASE_URL: ${{ matrix.database_url }}
DATABASE_SERVER_VERSION: ${{ matrix.database_server_version }}
MAILER_DSN: 'smtp://127.0.0.1:1025'
ECCUBE_PACKAGE_API_URL: 'http://127.0.0.1:8080'
TRUSTED_HOSTS: '127.0.0.1,localhost'
run: |
echo "APP_ENV=${APP_ENV}" > .env
echo "DATABASE_URL=${DATABASE_URL}" >> .env
echo "DATABASE_SERVER_VERSION=${DATABASE_SERVER_VERSION}" >> .env
echo "MAILER_DSN=${MAILER_DSN}" >> .env
echo "ECCUBE_PACKAGE_API_URL=${ECCUBE_PACKAGE_API_URL}" >> .env
echo "TRUSTED_HOSTS=${TRUSTED_HOSTS}" >> .env
bin/console doctrine:database:create --env=dev
bin/console doctrine:schema:create --env=dev
bin/console eccube:fixtures:load --env=dev

- name: Install fonts
run: sudo apt install fonts-ipafont fonts-ipaexfont

- name: setup-chromedriver
uses: nanasess/setup-chromedriver@master

Expand All @@ -155,11 +169,14 @@ jobs:
run: |
if [[ ! -d ${PWD}/repos ]]; then mkdir -p ${PWD}/repos ; fi
docker run -d --rm -v ${PWD}/repos:/repos -e MOCK_REPO_DIR=/repos -p 8080:8080 eccube/mock-package-api:composer2
cp codeception/_data/plugins/*-1.0.0.tgz repos
for d in $(ls codeception/_data/plugins | grep 1.0.0)
do
(cd codeception/_data/plugins/$d; tar zcf ../../../../repos/${d}.tgz *)
done

- name: Setup pcov
run: |
sudo apt-fast install -y php8.1-pcov
sudo apt-fast install -y php8.3-pcov
sudo phpenmod -s cli pcov

- name: Setup codeception
Expand All @@ -169,25 +186,16 @@ jobs:
sed -i "7a include __DIR__.'/c3.php';" index.php

- name: Start PHP Development Server
env:
APP_ENV: 'codeception'
DATABASE_URL: ${{ matrix.database_url }}
DATABASE_SERVER_VERSION: ${{ matrix.database_server_version }}
MAILER_URL: 'smtp://127.0.0.1:1025'
ECCUBE_PACKAGE_API_URL: 'http://127.0.0.1:8080'
run: php -S 127.0.0.1:8000 &
run: php -S 127.0.0.1:8000 codeception/router.php &

- name: Codeception
env:
APP_ENV: ${{ matrix.app_env }}
DATABASE_URL: ${{ matrix.database_url }}
DATABASE_SERVER_VERSION: ${{ matrix.database_server_version }}
MAILER_URL: 'smtp://127.0.0.1:1025'
ECCUBE_PACKAGE_API_URL: 'http://127.0.0.1:8080'
GROUP: ${{ matrix.group }}
SYMFONY_DEPRECATIONS_HELPER: weak
continue-on-error: true
run: php -dpcov.enabled=1 vendor/bin/codecept -vvv run acceptance --env chrome,github_action -g ${GROUP} --skip-group excludeCoverage --coverage --coverage-xml
run: |
sed -i "s|%GITHUB_WORKSPACE%|${GITHUB_WORKSPACE}|g" codeception/_envs/github_action.yml
php -dpcov.enabled=1 vendor/bin/codecept -vvv run acceptance --env chrome,github_action -g ${GROUP} --skip-group excludeCoverage --coverage --coverage-xml
- name: Upload outputs
uses: actions/upload-artifact@v2
with:
Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/deny-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- name: Setup PHP
uses: nanasess/setup-php@master
with:
php-version: '7.4'
php-version: '8.1'

- name: Initialize Composer
uses: ./.github/actions/composer
Expand All @@ -59,15 +59,15 @@ jobs:
DATABASE_URL: postgres://postgres:[email protected]:5432/eccube_db
DATABASE_SERVER_VERSION: 14
run: |
bin/console eccube:composer:require "ec-cube/recommend42"
bin/console eccube:composer:require "ec-cube/coupon42"
bin/console eccube:composer:require "ec-cube/mailmagazine42"
bin/console eccube:composer:require "ec-cube/salesreport42"
bin/console eccube:composer:require "ec-cube/relatedproduct42"
bin/console eccube:composer:require "ec-cube/securitychecker42"
bin/console eccube:composer:require "ec-cube/productreview42"
bin/console eccube:composer:require "ec-cube/api42"
bin/console eccube:composer:require "ec-cube/sitekit42"
# bin/console eccube:composer:require "ec-cube/recommend42"
# bin/console eccube:composer:require "ec-cube/coupon42"
# bin/console eccube:composer:require "ec-cube/mailmagazine42"
# bin/console eccube:composer:require "ec-cube/salesreport42"
# bin/console eccube:composer:require "ec-cube/relatedproduct42"
# bin/console eccube:composer:require "ec-cube/securitychecker42"
# bin/console eccube:composer:require "ec-cube/productreview42"
# bin/console eccube:composer:require "ec-cube/api42"
# bin/console eccube:composer:require "ec-cube/sitekit42"

- name: Pre Install Plugins
env:
Expand All @@ -93,7 +93,7 @@ jobs:
docker cp ../eccube.tar.gz eccube:/tmp/
docker exec -w /tmp eccube bash -c "rm -rf /var/www/html; tar xf /tmp/eccube.tar.gz -C /var/www; mv /var/www/ec-cube /var/www/html; chown -R www-data: /var/www/html"
docker exec -u www-data eccube bin/console eccube:install -n
docker exec -u www-data eccube bash -c 'for code in Api42 Coupon42 MailMagazine42 ProductReview42 Recommend42 RelatedProduct42 SalesReport42 Securitychecker42 SiteKit42; do bin/console eccube:plugin:enable --code $code; done'
# docker exec -u www-data eccube bash -c 'for code in Api42 Coupon42 MailMagazine42 ProductReview42 Recommend42 RelatedProduct42 SalesReport42 Securitychecker42 SiteKit42; do bin/console eccube:plugin:enable --code $code; done'

- name: setup-chromedriver
uses: nanasess/setup-chromedriver@master
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Setup PHP
uses: nanasess/setup-php@master
with:
php-version: '7.4'
php-version: '8.1'

- name: Install to Composer
run: composer install --no-scripts --no-dev --no-interaction --optimize-autoloader
Expand Down Expand Up @@ -60,7 +60,7 @@ jobs:
bin/console eccube:composer:require "ec-cube/sitekit42"

- name: revert to config platform.php
run: composer config platform.php 7.4.0
run: composer config platform.php 8.1.0

- name: Pre Install Plugins
env:
Expand Down
15 changes: 9 additions & 6 deletions .github/workflows/dockerbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
fail-fast: false
matrix:
operating-system: [ ubuntu-22.04 ]
php: [ '7.4', '8.0', '8.1' ]
php: [ '8.1', '8.2', '8.3' ]
db: [ pgsql ]
group: [ admin01 ]
include:
Expand All @@ -29,12 +29,13 @@ jobs:
database_server_version: 14
- group: admin01
app_env: 'codeception'
- php: '7.4'
tag: '7.4-apache'
- php: '8.0'
tag: '8.0-apache'
- php: '8.1'
tag: '8.1-apache'
- php: '8.2'
tag: '8.2-apache'
- php: '8.3'
tag: '8.3-apache'

steps:
- name: downcase REPO
run: |
Expand Down Expand Up @@ -94,6 +95,7 @@ jobs:
run: |
docker compose -f docker-compose.yml -f docker-compose.pgsql.yml up -d --wait
sed -i 's!APP_ENV: "dev"!APP_ENV: "prod"!g' docker-compose.yml
sed -i 's!APP_DEBUG: 1!APP_DEBUG: 0!g' docker-compose.yml
docker compose -f docker-compose.yml -f docker-compose.pgsql.yml up -d --wait

- name: setup-chromedriver
Expand All @@ -117,7 +119,8 @@ jobs:
SYMFONY_DEPRECATIONS_HELPER: weak
run: |
echo "APP_ENV=${APP_ENV}" > .env
vendor/bin/codecept -vvv run acceptance --env chrome,github_action_docker -g ${GROUP}
sed -i "s|%GITHUB_WORKSPACE%|${GITHUB_WORKSPACE}|g" codeception/_envs/github_action_docker.yml
vendor/bin/codecept -vvv run acceptance --env chrome,github_action_docker -g ${GROUP} --html report.html
## see https://docs.github.com/ja/packages/managing-github-packages-using-github-actions-workflows/publishing-and-installing-a-package-with-github-actions#publishing-a-package-using-an-action

- name: Push Docker image
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/e2e-test-throttling.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ jobs:
- name: setup-chromedriver
uses: nanasess/setup-chromedriver@master

- name: Install fonts
run: sudo apt install fonts-ipafont fonts-ipaexfont

- name: Run chromedriver
run: |
export DISPLAY=:99
Expand All @@ -138,7 +141,9 @@ jobs:
ECCUBE_PACKAGE_API_URL: 'http://127.0.0.1:8080'
METHOD: ${{ matrix.method }}
SYMFONY_DEPRECATIONS_HELPER: weak
run: vendor/bin/codecept -vvv run acceptance --env chrome,github_action EF09ThrottlingCest::${METHOD} --html report.html
run: |
sed -i "s|%GITHUB_WORKSPACE%|${GITHUB_WORKSPACE}|g" codeception/_envs/github_action.yml
vendor/bin/codecept -vvv run acceptance --env chrome,github_action EF09ThrottlingCest::${METHOD} --html report.html

- name: Upload evidence
if: failure()
Expand Down
15 changes: 11 additions & 4 deletions .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [ 7.4 ]
php: [ 8.1 ]
db: [ pgsql ]
group: [ 'admin01', 'admin02', 'admin03', 'front', 'restrict-fileupload', 'installer' ]
include:
Expand Down Expand Up @@ -97,7 +97,10 @@ jobs:
run: |
if [[ ! -d ${PWD}/repos ]]; then mkdir -p ${PWD}/repos ; fi
docker run -d --rm -v ${PWD}/repos:/repos -e MOCK_REPO_DIR=/repos -p 8080:8080 eccube/mock-package-api:composer2
cp codeception/_data/plugins/*-1.0.0.tgz repos
for d in $(ls codeception/_data/plugins | grep 1.0.0)
do
(cd codeception/_data/plugins/$d; tar zcf ../../../../repos/${d}.tgz *)
done

- name: Start PHP Development Server
if: ${{ matrix.group != 'restrict-fileupload' }}
Expand Down Expand Up @@ -130,7 +133,9 @@ jobs:
ECCUBE_PACKAGE_API_URL: 'http://127.0.0.1:8080'
GROUP: ${{ matrix.group }}
SYMFONY_DEPRECATIONS_HELPER: weak
run: vendor/bin/codecept -vvv run acceptance --env chrome,github_action -g ${GROUP} --skip-group restrict-file-upload --html report.html
run: |
sed -i "s|%GITHUB_WORKSPACE%|${GITHUB_WORKSPACE}|g" codeception/_envs/github_action.yml
vendor/bin/codecept -vvv run acceptance --env chrome,github_action -g ${GROUP} --skip-group restrict-file-upload --html report.html

- name: Codeception with Restrict file upload
if: ${{ matrix.group == 'restrict-fileupload' }}
Expand All @@ -143,7 +148,9 @@ jobs:
GROUP: ${{ matrix.group }}
SYMFONY_DEPRECATIONS_HELPER: weak
ECCUBE_RESTRICT_FILE_UPLOAD: '1'
run: vendor/bin/codecept -vvv run acceptance --env chrome,github_action -g ${GROUP} --html report.html
run: |
sed -i "s|%GITHUB_WORKSPACE%|${GITHUB_WORKSPACE}|g" codeception/_envs/github_action.yml
vendor/bin/codecept -vvv run acceptance --env chrome,github_action -g ${GROUP} --html report.html

- name: Upload evidence
if: failure()
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Setup PHP
uses: nanasess/setup-php@master
with:
php-version: '7.4'
php-version: '8.1'

- name: Initialize Composer
uses: ./.github/actions/composer
Expand Down
24 changes: 16 additions & 8 deletions .github/workflows/plugin-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
fail-fast: false
matrix:
operating-system: [ ubuntu-22.04 ]
php: [ '7.4', '8.0', '8.1' ]
php: [ '8.1' ]
db: [ pgsql, mysql ]
method:
- test_install_enable_disable_remove_store
Expand Down Expand Up @@ -137,7 +137,9 @@ jobs:
METHOD: ${{ matrix.method }}
ECCUBE_PACKAGE_API_URL: 'http://127.0.0.1:8080'
NO_FIXTURES: 1
run: vendor/bin/codecept -vvv run acceptance --env chrome,github_action EA10PluginCest:${METHOD}
run: |
sed -i "s|%GITHUB_WORKSPACE%|${GITHUB_WORKSPACE}|g" codeception/_envs/github_action.yml
vendor/bin/codecept -vvv run acceptance --env chrome,github_action EA10PluginCest:${METHOD}
- name: Upload evidence
if: failure()
uses: actions/upload-artifact@v2
Expand All @@ -158,7 +160,7 @@ jobs:
fail-fast: false
matrix:
operating-system: [ ubuntu-22.04 ]
php: [ '7.4', '8.0', '8.1' ]
php: [ '8.1' ]
db: [ pgsql, mysql ]
method:
- test_install_update_remove_store
Expand Down Expand Up @@ -284,7 +286,9 @@ jobs:
METHOD: ${{ matrix.method }}
ECCUBE_PACKAGE_API_URL: 'http://127.0.0.1:8080'
NO_FIXTURES: 1
run: vendor/bin/codecept -vvv run acceptance --env chrome,github_action EA10PluginCest:${METHOD}
run: |
sed -i "s|%GITHUB_WORKSPACE%|${GITHUB_WORKSPACE}|g" codeception/_envs/github_action.yml
vendor/bin/codecept -vvv run acceptance --env chrome,github_action EA10PluginCest:${METHOD}
- name: Upload evidence
if: failure()
uses: actions/upload-artifact@v2
Expand All @@ -305,7 +309,7 @@ jobs:
fail-fast: false
matrix:
operating-system: [ ubuntu-22.04 ]
php: [ '7.4', '8.0', '8.1' ]
php: [ '8.1' ]
db: [ pgsql, mysql ]
method:
- test_extend_same_table_store
Expand Down Expand Up @@ -431,7 +435,9 @@ jobs:
METHOD: ${{ matrix.method }}
ECCUBE_PACKAGE_API_URL: 'http://127.0.0.1:8080'
NO_FIXTURES: 1
run: vendor/bin/codecept -vvv run acceptance --env chrome,github_action EA10PluginCest:${METHOD}
run: |
sed -i "s|%GITHUB_WORKSPACE%|${GITHUB_WORKSPACE}|g" codeception/_envs/github_action.yml
vendor/bin/codecept -vvv run acceptance --env chrome,github_action EA10PluginCest:${METHOD}
- name: Upload evidence
if: failure()
uses: actions/upload-artifact@v2
Expand All @@ -452,7 +458,7 @@ jobs:
fail-fast: false
matrix:
operating-system: [ ubuntu-22.04 ]
php: [ '7.4', '8.0', '8.1' ]
php: [ '8.1' ]
db: [ pgsql, mysql ]
method:
- test_dependency_each_install_plugin
Expand Down Expand Up @@ -581,7 +587,9 @@ jobs:
METHOD: ${{ matrix.method }}
ECCUBE_PACKAGE_API_URL: 'http://127.0.0.1:8080'
NO_FIXTURES: 1
run: vendor/bin/codecept -vvv run acceptance --env chrome,github_action EA10PluginCest:${METHOD}
run: |
sed -i "s|%GITHUB_WORKSPACE%|${GITHUB_WORKSPACE}|g" codeception/_envs/github_action.yml
vendor/bin/codecept -vvv run acceptance --env chrome,github_action EA10PluginCest:${METHOD}
- name: Upload evidence
if: failure()
uses: actions/upload-artifact@v2
Expand Down
Loading
Loading