Skip to content

Commit

Permalink
IBX-5091: Bump Postgres CI to 14
Browse files Browse the repository at this point in the history
Co-authored-by: Paweł Niedzielski <[email protected]>
  • Loading branch information
glye and Steveb-p authored Oct 31, 2023
1 parent 6c44c70 commit 4e38715
Showing 1 changed file with 37 additions and 38 deletions.
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:[email protected]:${{ job.services.mariadb.ports[3306] }}/testdb"
DATABASE: "mysql://mariadb:[email protected]:${{ 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

0 comments on commit 4e38715

Please sign in to comment.