Skip to content

IBX-5091: Bump Postgres CI to 14 #3152

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

Merged
merged 4 commits into from
Oct 31, 2023
Merged
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
75 changes: 37 additions & 38 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
jobs:
tests:
name: Unit tests & SQLite integration tests
runs-on: "ubuntu-20.04"
runs-on: "ubuntu-22.04"
timeout-minutes: 15

strategy:
Expand All @@ -21,10 +21,9 @@ jobs:
- '7.2'
- '7.3'
- '7.4'
composer_options: [ "" ]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Setup PHP Action
uses: shivammathur/setup-php@v2
Expand All @@ -34,10 +33,9 @@ jobs:
extensions: pdo_sqlite, gd
tools: cs2pr

- uses: "ramsey/composer-install@v1"
- uses: ramsey/composer-install@v2
with:
dependency-versions: "highest"
composer-options: "${{ matrix.composer_options }}"
dependency-versions: highest

- name: Setup problem matchers for PHPUnit
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
Expand All @@ -59,7 +57,7 @@ jobs:
needs: tests
services:
postgres:
image: postgres:10
image: postgres:${{ matrix.postgres }}
ports:
- 5432
env:
Expand All @@ -71,23 +69,26 @@ jobs:
--health-timeout 5s
--health-retries 5
--tmpfs /var/lib/postgres
runs-on: "ubuntu-20.04"
runs-on: "ubuntu-22.04"
timeout-minutes: 60
continue-on-error: ${{ matrix.experimental }}

strategy:
fail-fast: false
matrix:
experimental: [ false ]
postgres:
- 10
- 11
- 14
- 15
php:
- '7.1'
- '7.2'
- '7.3'
- '7.4'
composer_options: [ "" ]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Setup PHP Action
uses: shivammathur/setup-php@v2
Expand All @@ -97,10 +98,9 @@ jobs:
extensions: pdo_pgsql, gd
tools: cs2pr

- uses: "ramsey/composer-install@v1"
- uses: ramsey/composer-install@v2
with:
dependency-versions: "highest"
composer-options: "${{ matrix.composer_options }}"
dependency-versions: highest

- name: Setup problem matchers for PHPUnit
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
Expand All @@ -117,7 +117,7 @@ jobs:
needs: tests
services:
mysql:
image: mysql:5.7
image: mysql:${{ matrix.mysql }}
ports:
- 3306/tcp
env:
Expand All @@ -131,20 +131,20 @@ jobs:
--health-timeout=5s
--health-retries=5
--tmpfs=/var/lib/mysql
runs-on: "ubuntu-20.04"
runs-on: "ubuntu-22.04"
timeout-minutes: 60

strategy:
fail-fast: false
matrix:
php:
- '7.1'
- '7.2'
- '7.3'
- '7.4'
mysql:
- '5.7'

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Setup PHP Action
uses: shivammathur/setup-php@v2
Expand All @@ -154,9 +154,9 @@ jobs:
extensions: pdo_mysql, gd, redis
tools: cs2pr

- uses: "ramsey/composer-install@v1"
- uses: ramsey/composer-install@v2
with:
dependency-versions: "highest"
dependency-versions: highest

- name: Setup problem matchers for PHPUnit
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
Expand All @@ -172,7 +172,7 @@ jobs:
needs: tests
services:
mariadb:
image: mariadb:10.3
image: mariadb:${{ matrix.mariadb }}
ports:
- 3306/tcp
env:
Expand All @@ -186,20 +186,20 @@ jobs:
--health-timeout=5s
--health-retries=5
--tmpfs=/var/lib/mariadb
runs-on: "ubuntu-20.04"
runs-on: "ubuntu-22.04"
timeout-minutes: 60

strategy:
fail-fast: false
matrix:
php:
- '7.1'
- '7.2'
- '7.3'
- '7.4'
mariadb:
- '10.3'

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Setup PHP Action
uses: shivammathur/setup-php@v2
Expand All @@ -209,9 +209,9 @@ jobs:
extensions: pdo_mysql, gd, redis
tools: cs2pr

- uses: "ramsey/composer-install@v1"
- uses: ramsey/composer-install@v2
with:
dependency-versions: "highest"
dependency-versions: highest

- name: Setup problem matchers for PHPUnit
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
Expand All @@ -222,16 +222,16 @@ jobs:
DATABASE_URL: "mysql://mariadb:mariadb@127.0.0.1:${{ job.services.mariadb.ports[3306] }}/testdb"
DATABASE: "mysql://mariadb:mariadb@127.0.0.1:${{ job.services.mariadb.ports[3306] }}/testdb"

functional-rest:
functional-rest:
name: REST tests
runs-on: "ubuntu-20.04"
runs-on: "ubuntu-22.04"
timeout-minutes: 10
env:
COMPOSE_FILE: "doc/docker/base-dev.yml:doc/docker/selenium.yml"
SYMFONY_ENV: "behat"
PHP_IMAGE: "ezsystems/php:7.2-v1"
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Setup PHP Action
uses: shivammathur/setup-php@v2
Expand All @@ -254,9 +254,9 @@ jobs:
cd "$HOME/build/ezplatform"
docker-compose --env-file=.env exec -T --user www-data app sh -c "bin/phpunit -v vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishRestBundle/Tests/Functional"

intergation-solr:
intergation-solr:
name: Integration tests with Solr and Redis
runs-on: "ubuntu-20.04"
runs-on: "ubuntu-22.04"
timeout-minutes: 20
env:
CORES_SETUP: "shared"
Expand All @@ -268,10 +268,10 @@ jobs:
image: redis
ports:
- 6379:6379
options:
options:
--memory=60m
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Setup PHP Action
uses: shivammathur/setup-php@v2
Expand All @@ -286,10 +286,9 @@ jobs:
distribution: 'temurin'
java-version: '8'

- uses: "ramsey/composer-install@v1"
- uses: ramsey/composer-install@v2
with:
dependency-versions: "highest"
composer-options: "${{ matrix.composer_options }}"
dependency-versions: highest

- name: Setup problem matchers for PHPUnit
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
Expand Down