Skip to content

Commit

Permalink
feat: actions version up for php/mysql/postgres
Browse files Browse the repository at this point in the history
  • Loading branch information
dotani1111 committed Oct 30, 2024
1 parent 6372cd0 commit b702fdd
Show file tree
Hide file tree
Showing 13 changed files with 63 additions and 68 deletions.
8 changes: 4 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 @@ -92,7 +92,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 +105,7 @@ jobs:
app_env: 'install'
services:
postgres:
image: postgres:14
image: postgres:17
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
Expand Down
11 changes: 5 additions & 6 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,8 +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 +44,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 +56,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 +120,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

0 comments on commit b702fdd

Please sign in to comment.