Add exceptions for PHP CI to use older PGSQL versions

This commit is contained in:
cytopia 2022-03-27 19:40:09 +02:00
parent f632cc247f
commit 579ae15bcc
No known key found for this signature in database
GPG Key ID: 6D56EDB8695128A2
2 changed files with 32 additions and 20 deletions

View File

@ -10,14 +10,16 @@ name: params
# Custom Variables
# -------------------------------------------------------------------------------------------------
env:
# Note: Older PHP versions use an older version of phpPgMyAdmin, which does not work with later
# PgSQL server versions. That's why we need to tell those combinations to use an old PgSQL server
MATRIX: >-
[
{"PHP_SERVER": "PHP 5.3", "HTTPD_SERVER": "apache-2.2"},
{"PHP_SERVER": "PHP 5.4", "HTTPD_SERVER": "apache-2.2"},
{"PHP_SERVER": "PHP 5.5", "HTTPD_SERVER": "apache-2.2"},
{"PHP_SERVER": "PHP 5.6", "HTTPD_SERVER": "apache-2.2"},
{"PHP_SERVER": "PHP 7.0", "HTTPD_SERVER": "apache-2.2"},
{"PHP_SERVER": "PHP 7.1", "HTTPD_SERVER": "apache-2.2"},
{"PHP_SERVER": "PHP 5.3", "HTTPD_SERVER": "apache-2.2", "PGSQL_SERVER": "PgSQL 12"},
{"PHP_SERVER": "PHP 5.4", "HTTPD_SERVER": "apache-2.2", "PGSQL_SERVER": "PgSQL 12"},
{"PHP_SERVER": "PHP 5.5", "HTTPD_SERVER": "apache-2.2", "PGSQL_SERVER": "PgSQL 12"},
{"PHP_SERVER": "PHP 5.6", "HTTPD_SERVER": "apache-2.2", "PGSQL_SERVER": "PgSQL 12"},
{"PHP_SERVER": "PHP 7.0", "HTTPD_SERVER": "apache-2.2", "PGSQL_SERVER": "PgSQL 12"},
{"PHP_SERVER": "PHP 7.1", "HTTPD_SERVER": "apache-2.2", "PGSQL_SERVER": "PgSQL 12"},
{"PHP_SERVER": "PHP 7.2", "HTTPD_SERVER": "apache-2.2"},
{"PHP_SERVER": "PHP 7.3", "HTTPD_SERVER": "apache-2.2"},
{"PHP_SERVER": "PHP 7.4", "HTTPD_SERVER": "apache-2.2"},
@ -25,12 +27,12 @@ env:
{"PHP_SERVER": "PHP 8.1", "HTTPD_SERVER": "apache-2.2"},
{"PHP_SERVER": "PHP 8.2", "HTTPD_SERVER": "apache-2.2"},
{"PHP_SERVER": "PHP 5.3", "HTTPD_SERVER": "apache-2.4"},
{"PHP_SERVER": "PHP 5.4", "HTTPD_SERVER": "apache-2.4"},
{"PHP_SERVER": "PHP 5.5", "HTTPD_SERVER": "apache-2.4"},
{"PHP_SERVER": "PHP 5.6", "HTTPD_SERVER": "apache-2.4"},
{"PHP_SERVER": "PHP 7.0", "HTTPD_SERVER": "apache-2.4"},
{"PHP_SERVER": "PHP 7.1", "HTTPD_SERVER": "apache-2.4"},
{"PHP_SERVER": "PHP 5.3", "HTTPD_SERVER": "apache-2.4", "PGSQL_SERVER": "PgSQL 12"},
{"PHP_SERVER": "PHP 5.4", "HTTPD_SERVER": "apache-2.4", "PGSQL_SERVER": "PgSQL 12"},
{"PHP_SERVER": "PHP 5.5", "HTTPD_SERVER": "apache-2.4", "PGSQL_SERVER": "PgSQL 12"},
{"PHP_SERVER": "PHP 5.6", "HTTPD_SERVER": "apache-2.4", "PGSQL_SERVER": "PgSQL 12"},
{"PHP_SERVER": "PHP 7.0", "HTTPD_SERVER": "apache-2.4", "PGSQL_SERVER": "PgSQL 12"},
{"PHP_SERVER": "PHP 7.1", "HTTPD_SERVER": "apache-2.4", "PGSQL_SERVER": "PgSQL 12"},
{"PHP_SERVER": "PHP 7.2", "HTTPD_SERVER": "apache-2.4"},
{"PHP_SERVER": "PHP 7.3", "HTTPD_SERVER": "apache-2.4"},
{"PHP_SERVER": "PHP 7.4", "HTTPD_SERVER": "apache-2.4"},
@ -38,12 +40,12 @@ env:
{"PHP_SERVER": "PHP 8.1", "HTTPD_SERVER": "apache-2.4"},
{"PHP_SERVER": "PHP 8.2", "HTTPD_SERVER": "apache-2.4"},
{"PHP_SERVER": "PHP 5.3", "HTTPD_SERVER": "nginx-stable"},
{"PHP_SERVER": "PHP 5.4", "HTTPD_SERVER": "nginx-stable"},
{"PHP_SERVER": "PHP 5.5", "HTTPD_SERVER": "nginx-stable"},
{"PHP_SERVER": "PHP 5.6", "HTTPD_SERVER": "nginx-stable"},
{"PHP_SERVER": "PHP 7.0", "HTTPD_SERVER": "nginx-stable"},
{"PHP_SERVER": "PHP 7.1", "HTTPD_SERVER": "nginx-stable"},
{"PHP_SERVER": "PHP 5.3", "HTTPD_SERVER": "nginx-stable", "PGSQL_SERVER": "PgSQL 12"},
{"PHP_SERVER": "PHP 5.4", "HTTPD_SERVER": "nginx-stable", "PGSQL_SERVER": "PgSQL 12"},
{"PHP_SERVER": "PHP 5.5", "HTTPD_SERVER": "nginx-stable", "PGSQL_SERVER": "PgSQL 12"},
{"PHP_SERVER": "PHP 5.6", "HTTPD_SERVER": "nginx-stable", "PGSQL_SERVER": "PgSQL 12"},
{"PHP_SERVER": "PHP 7.0", "HTTPD_SERVER": "nginx-stable", "PGSQL_SERVER": "PgSQL 12"},
{"PHP_SERVER": "PHP 7.1", "HTTPD_SERVER": "nginx-stable", "PGSQL_SERVER": "PgSQL 12"},
{"PHP_SERVER": "PHP 7.2", "HTTPD_SERVER": "nginx-stable"},
{"PHP_SERVER": "PHP 7.3", "HTTPD_SERVER": "nginx-stable"},
{"PHP_SERVER": "PHP 7.4", "HTTPD_SERVER": "nginx-stable"},

View File

@ -45,12 +45,12 @@ jobs:
run: |
echo '${{ toJson(matrix) }}' | jq -r
- name: "[DEBUG] Show environment"
- name: "[DEBUG] Show env variables"
shell: bash
run: |
env
- name: "[DEBUG] Show network"
- name: "[DEBUG] Show open network ports"
shell: bash
run: |
netstat -an || true
@ -61,6 +61,11 @@ jobs:
run: |
docker version
- name: "[DEBUG] Show Docker Compose version"
shell: bash
run: |
docker-compose version
# ------------------------------------------------------------
# Configure
# ------------------------------------------------------------
@ -102,6 +107,11 @@ jobs:
make configure KEY="${KEY}" VAL="${VAL}"
done <<< "$( echo '${{ toJson(matrix) }}' | jq -r 'keys[]' )"
- name: "[Configure] Show .env file"
run: |
cat .env
# ------------------------------------------------------------
# Startup
# ------------------------------------------------------------