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

feat: actions version up for php/mysql/postgres #6299

Open
wants to merge 4 commits into
base: 4.3
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ jobs:
include:
- db: pgsql
database_url: postgres://postgres:password@127.0.0.1:5432/eccube_db
database_server_version: 14
database_server_version: 17
services:
postgres:
image: postgres:14
image: postgres:17
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
Expand Down Expand Up @@ -74,6 +74,7 @@ jobs:
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@v4
Expand All @@ -92,7 +93,7 @@ jobs:
include:
- db: pgsql
database_url: postgres://postgres:password@127.0.0.1:5432/eccube_db
database_server_version: 14
database_server_version: 17
- group: admin01
app_env: 'codeception'
- group: admin02
Expand All @@ -105,7 +106,7 @@ jobs:
app_env: 'install'
services:
postgres:
image: postgres:14
image: postgres:17
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/deny-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
runs-on: ubuntu-22.04
services:
postgres:
image: postgres:14
image: postgres:17
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
Expand All @@ -33,7 +33,7 @@ jobs:
- name: Setup PHP
uses: nanasess/setup-php@master
with:
php-version: '8.1'
php-version: '8.3'

- name: Initialize Composer
uses: ./.github/actions/composer
Expand All @@ -45,7 +45,7 @@ jobs:
env:
APP_ENV: 'prod'
DATABASE_URL: postgres://postgres:password@127.0.0.1:5432/eccube_db
DATABASE_SERVER_VERSION: 14
DATABASE_SERVER_VERSION: 17
run: |
rm -rf $GITHUB_WORKSPACE/app/Plugin/*
echo "APP_ENV=${APP_ENV}" > .env
Expand All @@ -57,7 +57,7 @@ jobs:
env:
APP_ENV: 'prod'
DATABASE_URL: postgres://postgres:password@127.0.0.1:5432/eccube_db
DATABASE_SERVER_VERSION: 14
DATABASE_SERVER_VERSION: 17
run: |
bin/console eccube:composer:require "ec-cube/recommend42"
bin/console eccube:composer:require "ec-cube/coupon42"
Expand Down Expand Up @@ -121,6 +121,6 @@ jobs:
env:
APP_ENV: 'codeception'
DATABASE_URL: postgres://postgres:password@127.0.0.1:5432/eccube_db
DATABASE_SERVER_VERSION: 14
DATABASE_SERVER_VERSION: 17
run: |
vendor/bin/codecept -vvv run acceptance --env chrome,local CL01DenyCest
9 changes: 4 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-22.04
services:
postgres:
image: postgres:14
image: postgres:17
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
Expand All @@ -23,8 +23,7 @@ jobs:
- name: Setup PHP
uses: nanasess/setup-php@master
with:
php-version: '8.1'

php-version: '8.3'
- name: Install to Composer
run: composer install --no-scripts --no-dev --no-interaction --optimize-autoloader

Expand All @@ -35,7 +34,7 @@ jobs:
env:
APP_ENV: 'prod'
DATABASE_URL: postgres://postgres:password@127.0.0.1:5432/eccube_db
DATABASE_SERVER_VERSION: 14
DATABASE_SERVER_VERSION: 17
run: |
rm -rf $GITHUB_WORKSPACE/app/Plugin/*
echo "APP_ENV=${APP_ENV}" > .env
Expand All @@ -47,7 +46,7 @@ jobs:
env:
APP_ENV: 'prod'
DATABASE_URL: postgres://postgres:password@127.0.0.1:5432/eccube_db
DATABASE_SERVER_VERSION: 14
DATABASE_SERVER_VERSION: 17
run: |
bin/console eccube:composer:require "ec-cube/recommend42"
bin/console eccube:composer:require "ec-cube/coupon42"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dockerbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
include:
- db: pgsql
database_url: postgres://dbuser:secret@127.0.0.1:15432/eccubedb
database_server_version: 14
database_server_version: 17
- group: admin01
app_env: 'codeception'
- php: '8.1'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/e2e-test-throttling.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ jobs:
include:
- db: pgsql
database_url: postgres://postgres:password@127.0.0.1:5432/eccube_db
database_server_version: 14
database_server_version: 17
services:
postgres:
image: postgres:14
image: postgres:17
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
include:
- db: pgsql
database_url: postgres://postgres:password@127.0.0.1:5432/eccube_db
database_server_version: 14
database_server_version: 17
- group: 'admin01'
app_env: 'codeception'
- group: 'admin02'
Expand All @@ -40,7 +40,7 @@ jobs:
app_env: 'install'
services:
postgres:
image: postgres:14
image: postgres:17
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
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: '8.1'
php-version: '8.3'

- name: Initialize Composer
uses: ./.github/actions/composer
Expand Down
36 changes: 18 additions & 18 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: [ '8.1' ]
php: [ '8.3' ]
db: [ pgsql, mysql ]
method:
- test_install_enable_disable_remove_store
Expand All @@ -34,23 +34,23 @@ jobs:
include:
- db: pgsql
database_url: postgres://postgres:password@127.0.0.1:5432/eccube_db
database_server_version: 14
database_server_version: 17
database_charset: utf8
- db: mysql
database_url: mysql://root:password@127.0.0.1:3306/eccube_db
database_server_version: 5
database_server_version: 8
database_charset: utf8mb4

services:
mysql:
image: mysql:5.7
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
postgres:
image: postgres:14
image: postgres:17
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
Expand Down Expand Up @@ -160,7 +160,7 @@ jobs:
fail-fast: false
matrix:
operating-system: [ ubuntu-22.04 ]
php: [ '8.1' ]
php: [ '8.3' ]
db: [ pgsql, mysql ]
method:
- test_install_update_remove_store
Expand All @@ -172,23 +172,23 @@ jobs:
include:
- db: pgsql
database_url: postgres://postgres:password@127.0.0.1:5432/eccube_db
database_server_version: 14
database_server_version: 17
database_charset: utf8
- db: mysql
database_url: mysql://root:password@127.0.0.1:3306/eccube_db
database_server_version: 5
database_server_version: 8
database_charset: utf8mb4

services:
mysql:
image: mysql:5.7
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
postgres:
image: postgres:14
image: postgres:17
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
Expand Down Expand Up @@ -309,7 +309,7 @@ jobs:
fail-fast: false
matrix:
operating-system: [ ubuntu-22.04 ]
php: [ '8.1' ]
php: [ '8.3' ]
db: [ pgsql, mysql ]
method:
- test_extend_same_table_store
Expand All @@ -321,7 +321,7 @@ jobs:
include:
- db: pgsql
database_url: postgres://postgres:password@127.0.0.1:5432/eccube_db
database_server_version: 14
database_server_version: 17
database_charset: utf8
- db: mysql
database_url: mysql://root:password@127.0.0.1:3306/eccube_db
Expand All @@ -330,14 +330,14 @@ jobs:

services:
mysql:
image: mysql:5.7
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
postgres:
image: postgres:14
image: postgres:17
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
Expand Down Expand Up @@ -458,7 +458,7 @@ jobs:
fail-fast: false
matrix:
operating-system: [ ubuntu-22.04 ]
php: [ '8.1' ]
php: [ '8.3' ]
db: [ pgsql, mysql ]
method:
- test_dependency_each_install_plugin
Expand All @@ -470,7 +470,7 @@ jobs:
include:
- db: pgsql
database_url: postgres://postgres:password@127.0.0.1:5432/eccube_db
database_server_version: 14
database_server_version: 17
database_charset: utf8
- db: mysql
database_url: mysql://root:password@127.0.0.1:3306/eccube_db
Expand All @@ -482,14 +482,14 @@ jobs:

services:
mysql:
image: mysql:5.7
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
postgres:
image: postgres:14
image: postgres:17
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
database_charset: utf8mb4
- db: pgsql
database_url: postgres://postgres:password@127.0.0.1:5432/eccube_db
database_server_version: 16
database_server_version: 17
database_charset: utf8
- db: sqlite3
database_url: sqlite:///var/eccube.db
Expand All @@ -45,7 +45,7 @@ jobs:
- 3306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
postgres:
image: postgres:16
image: postgres:17
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
Expand Down
Loading
Loading