mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/16659] Add postgres tests
PHPBB3-16659
This commit is contained in:
parent
ba75aa9d0c
commit
1710a38ced
1 changed files with 57 additions and 28 deletions
83
.github/workflows/tests.yml
vendored
83
.github/workflows/tests.yml
vendored
|
@ -14,27 +14,52 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
unit-tests:
|
unit-tests:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
php: [7.4, 7.3, 7.2]
|
include:
|
||||||
db:
|
# - php: 7.1
|
||||||
- mysql:5.6
|
# db: "none"
|
||||||
- mysql:5.7
|
# NOTESTS: 1
|
||||||
# - mysql:8.0
|
# - php: 7.1
|
||||||
# - postgres:9.5
|
# db: "mariadb:10.1"
|
||||||
# - postgres:9.6
|
# - php: 7.1
|
||||||
# - postgres:10
|
# db: "mariadb:10.2"
|
||||||
# - postgres:11
|
# - php: 7.1
|
||||||
# - postgres:12
|
# db: "mariadb:10.3"
|
||||||
# - postgres:13
|
# - php: 7.1
|
||||||
# - sqlite3
|
# db: "mariadb:10.4"
|
||||||
|
# - php: 7.1
|
||||||
|
# db: "mariadb:10.5"
|
||||||
|
# - php: 7.1
|
||||||
|
# db: "postgres:9.5"
|
||||||
|
- php: 7.1
|
||||||
|
db: "postgres:10"
|
||||||
|
# - php: 7.1
|
||||||
|
# db: "postgres:11"
|
||||||
|
# - php: 7.1
|
||||||
|
# db: "postgres:12"
|
||||||
|
# - php: 7.1
|
||||||
|
# db: "postgres:13"
|
||||||
|
# - php: 7.1
|
||||||
|
# db: "sqlite3"
|
||||||
|
- php: 7.1
|
||||||
|
db: "mysql:5.6"
|
||||||
|
- php: 7.1
|
||||||
|
db: "mysql:5.7"
|
||||||
|
# - php: 7.1
|
||||||
|
# db: "mysql:8.0"
|
||||||
|
# - php: 7.2
|
||||||
|
# db: "mysql:5.7"
|
||||||
|
# - php: 7.3
|
||||||
|
# db: "mysql:5.7"
|
||||||
|
# - php: 7.4
|
||||||
|
# db: "mysql:5.7"
|
||||||
|
|
||||||
name: PHP ${{ matrix.php }} - ${{ matrix.db }}
|
name: PHP ${{ matrix.php }} - ${{ matrix.db }}
|
||||||
|
|
||||||
services:
|
services:
|
||||||
mysql:
|
mysql:
|
||||||
image: ${{ matrix.db }}
|
image: ${{ matrix.db != 'mysql:5.6' && matrix.db != 'mysql:5.7' && matrix.db != 'mysql:8.0' && 'mysql:5.7' || matrix.db }}
|
||||||
env:
|
env:
|
||||||
MYSQL_ALLOW_EMPTY_PASSWORD: yes
|
MYSQL_ALLOW_EMPTY_PASSWORD: yes
|
||||||
MYSQL_DATABASE: phpbb_tests
|
MYSQL_DATABASE: phpbb_tests
|
||||||
|
@ -46,18 +71,20 @@ jobs:
|
||||||
--health-timeout=5s
|
--health-timeout=5s
|
||||||
--health-retries=3
|
--health-retries=3
|
||||||
|
|
||||||
# postgres:
|
postgres:
|
||||||
# if: startsWith(${{ matrix.db }}, 'postgres')
|
image: ${{ matrix.db != 'postgres:9.5' && matrix.db != 'postgres:9.6' && matrix.db != 'postgres:10' && matrix.db != 'postgres:11' && matrix.db != 'postgres:12' && matrix.db != 'postgres:13' && 'postgres:10' || matrix.db }}
|
||||||
# image: ${{ matrix.db }}
|
env:
|
||||||
# env:
|
POSTGRES_HOST: localhost
|
||||||
# POSTGRES_PASSWORD: postgres
|
POSTGRES_USER: postgres
|
||||||
# ports:
|
POSTGRES_PASSWORD: postgres
|
||||||
# - 5432:5432
|
ports:
|
||||||
# options: >-
|
- 5432:5432
|
||||||
# --health-cmd pg_isready
|
options: >-
|
||||||
# --health-interval 10s
|
-v /var/run/postgresql:/var/run/postgresql
|
||||||
# --health-timeout 5s
|
--health-cmd pg_isready
|
||||||
# --health-retries 5
|
--health-interval 10s
|
||||||
|
--health-timeout 5s
|
||||||
|
--health-retries 5
|
||||||
redis:
|
redis:
|
||||||
image: redis
|
image: redis
|
||||||
options: >-
|
options: >-
|
||||||
|
@ -65,6 +92,8 @@ jobs:
|
||||||
--health-interval 10s
|
--health-interval 10s
|
||||||
--health-timeout 5s
|
--health-timeout 5s
|
||||||
--health-retries 5
|
--health-retries 5
|
||||||
|
ports:
|
||||||
|
- 6379:6379
|
||||||
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
@ -82,7 +111,7 @@ jobs:
|
||||||
uses: shivammathur/setup-php@v2
|
uses: shivammathur/setup-php@v2
|
||||||
with:
|
with:
|
||||||
php-version: ${{ matrix.php }}
|
php-version: ${{ matrix.php }}
|
||||||
extension: dom, curl, libxml, mbstring, zip, pcntl, pdo, mysqli, sqlite, pdo_sqlite, pdo_mysqli, intl, gd, exif, iconv
|
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, mysqli, sqlite, pdo_sqlite, pdo_mysqli, intl, gd, exif, iconv
|
||||||
coverage: none
|
coverage: none
|
||||||
|
|
||||||
- name: Setup environment for phpBB
|
- name: Setup environment for phpBB
|
||||||
|
|
Loading…
Add table
Reference in a new issue