From 58a2c1f94caf48f66528e4a86ba4ec7d3267d1a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Vo=C5=99=C3=AD=C5=A1ek?= Date: Fri, 3 Feb 2023 12:01:12 +0100 Subject: [PATCH 1/9] Add Alpine testing to CI --- .github/actions/apt-x64/action.yml | 140 ++++++++++++++--------- .github/actions/install-linux/action.yml | 6 +- .github/actions/setup-mssql/action.yml | 14 --- .github/actions/setup-oracle/action.yml | 13 --- .github/actions/setup-x64/action.yml | 22 ++-- .github/workflows/push.yml | 31 +++-- 6 files changed, 125 insertions(+), 101 deletions(-) delete mode 100644 .github/actions/setup-mssql/action.yml delete mode 100644 .github/actions/setup-oracle/action.yml diff --git a/.github/actions/apt-x64/action.yml b/.github/actions/apt-x64/action.yml index 621b18532e05f..d7aedb51e76a1 100644 --- a/.github/actions/apt-x64/action.yml +++ b/.github/actions/apt-x64/action.yml @@ -6,59 +6,93 @@ runs: run: | set -x - sudo apt-get update - sudo apt-get install \ - bison \ - re2c \ - locales \ - ldap-utils \ - openssl \ - slapd \ - language-pack-de \ - libgmp-dev \ - libicu-dev \ - libtidy-dev \ - libenchant-2-dev \ - libaspell-dev \ - libpspell-dev \ - libsasl2-dev \ - libxpm-dev \ - libzip-dev \ - libsqlite3-dev \ - libwebp-dev \ - libonig-dev \ - libkrb5-dev \ - libgssapi-krb5-2 \ - libcurl4-openssl-dev \ - libxml2-dev \ - libxslt1-dev \ - libpq-dev \ - libreadline-dev \ - libldap2-dev \ - libsodium-dev \ - libargon2-0-dev \ - libmm-dev \ - libsnmp-dev \ - postgresql \ - postgresql-contrib \ - snmpd \ - snmp-mibs-downloader \ - freetds-dev \ - unixodbc-dev \ - llvm \ - libc-client-dev \ - dovecot-core \ - dovecot-pop3d \ - dovecot-imapd \ - sendmail \ - firebird-dev \ - liblmdb-dev \ - libtokyocabinet-dev \ - libdb-dev \ - libqdbm-dev \ - libjpeg-dev \ - libpng-dev \ - libfreetype6-dev + if [ -f /etc/alpine-release ]; then + apk update -q + apk add \ + build-base \ + autoconf \ + bison \ + re2c \ + pkgconf \ + aspell-dev \ + bzip2-dev \ + curl-dev \ + freetype-dev \ + gettext-dev \ + gnu-libiconv-dev \ + gmp-dev \ + icu-dev \ + jpeg-dev \ + libffi-dev \ + libpng-dev \ + libsodium-dev \ + libwebp-dev \ + libxml2-dev \ + libxpm-dev \ + libxslt-dev \ + libzip-dev \ + oniguruma-dev \ + openssl-dev \ + readline-dev \ + sqlite-dev \ + tidyhtml-dev \ + tzdata + else + export ENV DEBIAN_FRONTEND=noninteractive + apt-get -y -qq update + apt-get install -y -q \ + bison \ + re2c \ + locales \ + ldap-utils \ + openssl \ + slapd \ + language-pack-de \ + libgmp-dev \ + libicu-dev \ + libtidy-dev \ + libenchant-2-dev \ + libaspell-dev \ + libpspell-dev \ + libsasl2-dev \ + libxpm-dev \ + libzip-dev \ + libsqlite3-dev \ + libwebp-dev \ + libonig-dev \ + libkrb5-dev \ + libgssapi-krb5-2 \ + libcurl4-openssl-dev \ + libxml2-dev \ + libxslt1-dev \ + libpq-dev \ + libreadline-dev \ + libldap2-dev \ + libsodium-dev \ + libargon2-0-dev \ + libmm-dev \ + libsnmp-dev \ + postgresql \ + postgresql-contrib \ + snmpd \ + snmp-mibs-downloader \ + freetds-dev \ + unixodbc-dev \ + llvm \ + libc-client-dev \ + dovecot-core \ + dovecot-pop3d \ + dovecot-imapd \ + sendmail \ + firebird-dev \ + liblmdb-dev \ + libtokyocabinet-dev \ + libdb-dev \ + libqdbm-dev \ + libjpeg-dev \ + libpng-dev \ + libfreetype6-dev + fi mkdir /opt/oracle wget -nv https://download.oracle.com/otn_software/linux/instantclient/instantclient-basiclite-linuxx64.zip diff --git a/.github/actions/install-linux/action.yml b/.github/actions/install-linux/action.yml index 7ac2ae4c4fcb1..13c1f86e3cba2 100644 --- a/.github/actions/install-linux/action.yml +++ b/.github/actions/install-linux/action.yml @@ -5,9 +5,9 @@ runs: - shell: bash run: | set -x - sudo make install - sudo mkdir /etc/php.d - sudo chmod 777 /etc/php.d + make install + mkdir /etc/php.d + chmod 777 /etc/php.d echo mysqli.default_socket=/var/run/mysqld/mysqld.sock > /etc/php.d/mysqli.ini echo pdo_mysql.default_socket=/var/run/mysqld/mysqld.sock > /etc/php.d/pdo_mysql.ini echo extension=oci8.so > /etc/php.d/oci8.ini diff --git a/.github/actions/setup-mssql/action.yml b/.github/actions/setup-mssql/action.yml deleted file mode 100644 index c069744a21b59..0000000000000 --- a/.github/actions/setup-mssql/action.yml +++ /dev/null @@ -1,14 +0,0 @@ -name: Create MSSQL container -runs: - using: composite - steps: - - shell: bash - run: | - set -x - docker run \ - -e "ACCEPT_EULA=Y" \ - -e "SA_PASSWORD=" \ - -p 1433:1433 \ - --name sql1 \ - -h sql1 \ - -d mcr.microsoft.com/mssql/server:2019-CU8-ubuntu-16.04 diff --git a/.github/actions/setup-oracle/action.yml b/.github/actions/setup-oracle/action.yml deleted file mode 100644 index 11c16fe93d525..0000000000000 --- a/.github/actions/setup-oracle/action.yml +++ /dev/null @@ -1,13 +0,0 @@ -name: Create Oracle container -runs: - using: composite - steps: - - shell: bash - run: | - set -x - docker run \ - -e "ORACLE_PASSWORD=pass" \ - -p 1521:1521 \ - --name oracle \ - -h oracle \ - -d gvenzl/oracle-xe:slim diff --git a/.github/actions/setup-x64/action.yml b/.github/actions/setup-x64/action.yml index 91cf7ea51c356..b8f99cb977558 100644 --- a/.github/actions/setup-x64/action.yml +++ b/.github/actions/setup-x64/action.yml @@ -6,22 +6,22 @@ runs: run: | set -x - sudo service mysql start - sudo service slapd start + service mysql start + service slapd start mysql -uroot -proot -e "CREATE DATABASE IF NOT EXISTS test" # Ensure local_infile tests can run. mysql -uroot -proot -e "SET GLOBAL local_infile = true" docker exec sql1 /opt/mssql-tools/bin/sqlcmd -S 127.0.0.1 -U SA -P "" -Q "create login pdo_test with password='password', check_policy=off; create user pdo_test for login pdo_test; grant alter, control to pdo_test;" - sudo locale-gen de_DE + locale-gen de_DE ./.github/scripts/setup-slapd.sh - sudo cp ext/snmp/tests/snmpd.conf /etc/snmp - sudo cp ext/snmp/tests/bigtest /etc/snmp - sudo service snmpd restart + cp ext/snmp/tests/snmpd.conf /etc/snmp + cp ext/snmp/tests/bigtest /etc/snmp + service snmpd restart - sudo groupadd -g 5000 vmail - sudo useradd -m -d /var/vmail -s /bin/false -u 5000 -g vmail vmail - sudo cp ext/imap/tests/setup/dovecot.conf /etc/dovecot/dovecot.conf - sudo cp ext/imap/tests/setup/dovecotpass /etc/dovecot/dovecotpass - sudo service dovecot restart + groupadd -g 5000 vmail + useradd -m -d /var/vmail -s /bin/false -u 5000 -g vmail vmail + cp ext/imap/tests/setup/dovecot.conf /etc/dovecot/dovecot.conf + cp ext/imap/tests/setup/dovecotpass /etc/dovecot/dovecotpass + service dovecot restart diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 19a7985e5b7e0..f3393234cbc4c 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -39,19 +39,35 @@ jobs: fail-fast: false matrix: include: - - debug: true + - alpine: false + debug: true zts: false - - debug: false +# - alpine: false +# debug: false +# zts: true + - alpine: true + debug: true zts: true - name: "LINUX_X64_${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }}" + name: "${{ matrix.alpine && 'ALPINE' || 'LINUX' }}_X64_${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }}" runs-on: ubuntu-22.04 + container: + image: "${{ matrix.alpine && 'alpine:3.15' || 'ubuntu:focal' }}" + services: + mssql: + image: mcr.microsoft.com/mssql/server:2019-latest + env: + ACCEPT_EULA: Y + SA_PASSWORD: '' + oracle: + image: gvenzl/oracle-xe:21-slim-faststart + env: + ORACLE_PASSWORD: pass steps: + - name: apt install bash/git + if: matrix.alpine + run: apk update -q && apk add bash git - name: git checkout uses: actions/checkout@v3 - - name: Create MSSQL container - uses: ./.github/actions/setup-mssql - - name: Create Oracle container - uses: ./.github/actions/setup-oracle - name: apt uses: ./.github/actions/apt-x64 - name: ccache @@ -136,6 +152,7 @@ jobs: -d opcache.jit_buffer_size=16M MACOS_DEBUG_NTS: runs-on: macos-11 + if: false steps: - name: git checkout uses: actions/checkout@v3 From edd73ce545533136b9e2bd96f39e763412ad6c8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Vo=C5=99=C3=AD=C5=A1ek?= Date: Fri, 3 Feb 2023 12:04:13 +0100 Subject: [PATCH 2/9] wip --- .github/actions/apt-x64/action.yml | 22 ++++++++++++++- .github/actions/configure-x64/action.yml | 12 ++++---- .github/actions/setup-x64/action.yml | 36 +++++++++++++----------- .github/actions/test-linux/action.yml | 8 +++--- .github/workflows/push.yml | 3 ++ 5 files changed, 54 insertions(+), 27 deletions(-) diff --git a/.github/actions/apt-x64/action.yml b/.github/actions/apt-x64/action.yml index d7aedb51e76a1..96b58818f180b 100644 --- a/.github/actions/apt-x64/action.yml +++ b/.github/actions/apt-x64/action.yml @@ -11,9 +11,11 @@ runs: apk add \ build-base \ autoconf \ + unzip \ bison \ re2c \ pkgconf \ + mysql-client \ aspell-dev \ bzip2-dev \ curl-dev \ @@ -36,17 +38,34 @@ runs: readline-dev \ sqlite-dev \ tidyhtml-dev \ - tzdata + krb5-dev \ + gdbm-dev \ + lmdb-dev \ + argon2-dev \ + enchant2-dev \ + freetds-dev \ + imap-dev \ + net-snmp-dev \ + openldap-dev \ + unixodbc-dev \ + postgresql14-dev \ + tzdata \ + musl-locales \ + musl-locales-lang else export ENV DEBIAN_FRONTEND=noninteractive apt-get -y -qq update apt-get install -y -q \ + build-essential \ + autoconf \ + unzip \ bison \ re2c \ locales \ ldap-utils \ openssl \ slapd \ + mysql-client \ language-pack-de \ libgmp-dev \ libicu-dev \ @@ -57,6 +76,7 @@ runs: libsasl2-dev \ libxpm-dev \ libzip-dev \ + libbz2-dev \ libsqlite3-dev \ libwebp-dev \ libonig-dev \ diff --git a/.github/actions/configure-x64/action.yml b/.github/actions/configure-x64/action.yml index ee802334490ae..af48fd01cb905 100644 --- a/.github/actions/configure-x64/action.yml +++ b/.github/actions/configure-x64/action.yml @@ -66,19 +66,19 @@ runs: --with-cdb \ --enable-flatfile \ --enable-inifile \ - --with-tcadb \ + $(if [ -f /etc/alpine-release ]; then echo ; else echo --with-tcadb; fi) \ --with-lmdb \ - --with-qdbm \ + $(if [ -f /etc/alpine-release ]; then echo --with-gdbm; else echo --with-qdbm; fi) \ --with-snmp \ --with-unixODBC \ - --with-imap \ + $(if [ -f /etc/alpine-release ]; then echo ; else echo --with-imap; fi) \ --with-imap-ssl \ --with-pdo-odbc=unixODBC,/usr \ - --with-pdo-oci=shared,instantclient,/opt/oracle/instantclient \ - --with-oci8=shared,instantclient,/opt/oracle/instantclient \ + $(if [ -f /etc/alpine-release ]; then echo ; else echo --with-pdo-oci=shared,instantclient,/opt/oracle/instantclient; fi) \ + $(if [ -f /etc/alpine-release ]; then echo ; else echo --with-oci8=shared,instantclient,/opt/oracle/instantclient; fi) \ --with-config-file-path=/etc \ --with-config-file-scan-dir=/etc/php.d \ - --with-pdo-firebird \ + $(if [ -f /etc/alpine-release ]; then echo ; else echo --with-pdo-firebird; fi) \ --with-pdo-dblib \ --enable-werror \ ${{ inputs.configurationParameters }} diff --git a/.github/actions/setup-x64/action.yml b/.github/actions/setup-x64/action.yml index b8f99cb977558..018dc20faf7cc 100644 --- a/.github/actions/setup-x64/action.yml +++ b/.github/actions/setup-x64/action.yml @@ -6,22 +6,26 @@ runs: run: | set -x - service mysql start - service slapd start - mysql -uroot -proot -e "CREATE DATABASE IF NOT EXISTS test" - # Ensure local_infile tests can run. - mysql -uroot -proot -e "SET GLOBAL local_infile = true" - docker exec sql1 /opt/mssql-tools/bin/sqlcmd -S 127.0.0.1 -U SA -P "" -Q "create login pdo_test with password='password', check_policy=off; create user pdo_test for login pdo_test; grant alter, control to pdo_test;" - locale-gen de_DE + if [ -f /etc/alpine-release ]; then + echo "TODO SETUP" + else + service mysql start + service slapd start + mysql -uroot -proot -e "CREATE DATABASE IF NOT EXISTS test" + # Ensure local_infile tests can run. + mysql -uroot -proot -e "SET GLOBAL local_infile = true" + docker exec sql1 /opt/mssql-tools/bin/sqlcmd -S 127.0.0.1 -U SA -P "" -Q "create login pdo_test with password='password', check_policy=off; create user pdo_test for login pdo_test; grant alter, control to pdo_test;" + locale-gen de_DE - ./.github/scripts/setup-slapd.sh + ./.github/scripts/setup-slapd.sh - cp ext/snmp/tests/snmpd.conf /etc/snmp - cp ext/snmp/tests/bigtest /etc/snmp - service snmpd restart + cp ext/snmp/tests/snmpd.conf /etc/snmp + cp ext/snmp/tests/bigtest /etc/snmp + service snmpd restart - groupadd -g 5000 vmail - useradd -m -d /var/vmail -s /bin/false -u 5000 -g vmail vmail - cp ext/imap/tests/setup/dovecot.conf /etc/dovecot/dovecot.conf - cp ext/imap/tests/setup/dovecotpass /etc/dovecot/dovecotpass - service dovecot restart + groupadd -g 5000 vmail + useradd -m -d /var/vmail -s /bin/false -u 5000 -g vmail vmail + cp ext/imap/tests/setup/dovecot.conf /etc/dovecot/dovecot.conf + cp ext/imap/tests/setup/dovecotpass /etc/dovecot/dovecotpass + service dovecot restart + fi diff --git a/.github/actions/test-linux/action.yml b/.github/actions/test-linux/action.yml index 9b7d0d100608f..3cd9f02cedc06 100644 --- a/.github/actions/test-linux/action.yml +++ b/.github/actions/test-linux/action.yml @@ -12,13 +12,13 @@ runs: - shell: bash run: | set -x - export MYSQL_TEST_USER=root - export MYSQL_TEST_PASSWD=root + export MYSQL_TEST_USER=useru + export MYSQL_TEST_PASSWD=userp if [[ -z "$PDO_MYSQL_TEST_DSN" ]]; then export PDO_MYSQL_TEST_DSN="mysql:host=localhost;dbname=test" fi - export PDO_MYSQL_TEST_USER=root - export PDO_MYSQL_TEST_PASS=root + export PDO_MYSQL_TEST_USER=useru + export PDO_MYSQL_TEST_PASS=userp export PDO_DBLIB_TEST_DSN="dblib:host=127.0.0.1;dbname=master;version=7.0" export PDO_DBLIB_TEST_USER="pdo_test" export PDO_DBLIB_TEST_PASS="password" diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index f3393234cbc4c..e5d9d8dbee837 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -53,6 +53,9 @@ jobs: container: image: "${{ matrix.alpine && 'alpine:3.15' || 'ubuntu:focal' }}" services: + mysql: + image: mysql:8 + options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=5 -e MYSQL_ROOT_PASSWORD=rootu -e MYSQL_USER=useru -e MYSQL_PASSWORD=userp -e MYSQL_DATABASE=test --entrypoint sh mysql:8 -c "exec docker-entrypoint.sh mysqld --default-authentication-plugin=mysql_native_password" mssql: image: mcr.microsoft.com/mssql/server:2019-latest env: From e77eee03cd05a306286776ed6bc8561467713d5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Vo=C5=99=C3=AD=C5=A1ek?= Date: Mon, 25 Jul 2022 20:04:28 +0200 Subject: [PATCH 3/9] fix enchant dicts --- .github/actions/apt-x64/action.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/actions/apt-x64/action.yml b/.github/actions/apt-x64/action.yml index 96b58818f180b..1347702ebe9ef 100644 --- a/.github/actions/apt-x64/action.yml +++ b/.github/actions/apt-x64/action.yml @@ -17,6 +17,8 @@ runs: pkgconf \ mysql-client \ aspell-dev \ + hunspell-dev \ + hunspell-en \ bzip2-dev \ curl-dev \ freetype-dev \ From 8da38053b80e1f0b23cdfea64ae8e7ca4755674a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Vo=C5=99=C3=AD=C5=A1ek?= Date: Mon, 25 Jul 2022 23:26:52 +0200 Subject: [PATCH 4/9] fix iconv headers discovery --- .github/actions/configure-x64/action.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/actions/configure-x64/action.yml b/.github/actions/configure-x64/action.yml index af48fd01cb905..156c53c7bc480 100644 --- a/.github/actions/configure-x64/action.yml +++ b/.github/actions/configure-x64/action.yml @@ -41,6 +41,7 @@ runs: --enable-pcntl \ --with-readline \ --enable-mbstring \ + $(if [ -f /etc/alpine-release ]; then echo --with-iconv=/usr/include/gnu-libiconv; else echo ; fi) \ --with-curl \ --with-gettext \ --enable-sockets \ From afe4874201644913dd2c0c698e99fb7b5ec2e947 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Vo=C5=99=C3=AD=C5=A1ek?= Date: Tue, 26 Jul 2022 10:01:24 +0200 Subject: [PATCH 5/9] fix bug61546.phpt test --- sapi/cli/tests/bug61546.phpt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sapi/cli/tests/bug61546.phpt b/sapi/cli/tests/bug61546.phpt index 67b531472174a..7ce2591ebccf7 100644 --- a/sapi/cli/tests/bug61546.phpt +++ b/sapi/cli/tests/bug61546.phpt @@ -15,7 +15,8 @@ $php = getenv("TEST_PHP_EXECUTABLE_ESCAPED"); $test_code = << Date: Sat, 10 Sep 2022 11:11:52 +0200 Subject: [PATCH 6/9] fix rebase --- .github/actions/apt-x64/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/apt-x64/action.yml b/.github/actions/apt-x64/action.yml index 1347702ebe9ef..025d6f51154f9 100644 --- a/.github/actions/apt-x64/action.yml +++ b/.github/actions/apt-x64/action.yml @@ -126,4 +126,4 @@ runs: rm /opt/oracle/instantclient/sdk/include/ldap.h # fix debug build warning: zend_signal: handler was replaced for signal (2) after startup echo DISABLE_INTERRUPT=on > /opt/oracle/instantclient/network/admin/sqlnet.ora - sudo sh -c 'echo /opt/oracle/instantclient >/etc/ld.so.conf.d/oracle-instantclient.conf && ldconfig' + sh -c 'echo /opt/oracle/instantclient >/etc/ld.so.conf.d/oracle-instantclient.conf && ldconfig' From 95cf3257209ba1575c09a7450115d8d900d68237 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Vo=C5=99=C3=AD=C5=A1ek?= Date: Sat, 10 Sep 2022 14:55:31 +0200 Subject: [PATCH 7/9] wip Oracle ldconfig lib wip wip2 not needed --- .github/actions/apt-x64/action.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/actions/apt-x64/action.yml b/.github/actions/apt-x64/action.yml index 025d6f51154f9..e75378b41d8b3 100644 --- a/.github/actions/apt-x64/action.yml +++ b/.github/actions/apt-x64/action.yml @@ -126,4 +126,8 @@ runs: rm /opt/oracle/instantclient/sdk/include/ldap.h # fix debug build warning: zend_signal: handler was replaced for signal (2) after startup echo DISABLE_INTERRUPT=on > /opt/oracle/instantclient/network/admin/sqlnet.ora - sh -c 'echo /opt/oracle/instantclient >/etc/ld.so.conf.d/oracle-instantclient.conf && ldconfig' + if [ -f /etc/alpine-release ]; then + echo "/lib:/usr/local/lib:/usr/lib:/opt/oracle/instantclient" > /etc/ld-musl-x86_64.path + else + sh -c 'echo /opt/oracle/instantclient >/etc/ld.so.conf.d/oracle-instantclient.conf && ldconfig' + fi From 20ed7c85516eb6b32488c81ead25111be66fea56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Vo=C5=99=C3=AD=C5=A1ek?= Date: Sun, 11 Sep 2022 12:41:30 +0200 Subject: [PATCH 8/9] DEBUG oracle for alpine --- .github/actions/apt-x64/action.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/actions/apt-x64/action.yml b/.github/actions/apt-x64/action.yml index e75378b41d8b3..ec411a0901daf 100644 --- a/.github/actions/apt-x64/action.yml +++ b/.github/actions/apt-x64/action.yml @@ -127,6 +127,8 @@ runs: # fix debug build warning: zend_signal: handler was replaced for signal (2) after startup echo DISABLE_INTERRUPT=on > /opt/oracle/instantclient/network/admin/sqlnet.ora if [ -f /etc/alpine-release ]; then + apk add libaio libc6-compat libnsl + ln -s /lib/libc.so.6 /usr/lib/libresolv.so.2 echo "/lib:/usr/local/lib:/usr/lib:/opt/oracle/instantclient" > /etc/ld-musl-x86_64.path else sh -c 'echo /opt/oracle/instantclient >/etc/ld.so.conf.d/oracle-instantclient.conf && ldconfig' From 724577755403ac8535aeb9d7b46a867952eb83e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Vo=C5=99=C3=AD=C5=A1ek?= Date: Tue, 18 Apr 2023 12:23:30 +0200 Subject: [PATCH 9/9] fix dupl services, fix push.yml syntax --- .github/workflows/push.yml | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index e5d9d8dbee837..9e168968051ad 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -29,12 +29,24 @@ env: jobs: LINUX_X64: services: + mysql: + image: mysql:8 + options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=5 -e MYSQL_ROOT_PASSWORD=rootu -e MYSQL_USER=useru -e MYSQL_PASSWORD=userp -e MYSQL_DATABASE=test --entrypoint sh mysql:8 -c "exec docker-entrypoint.sh mysqld --default-authentication-plugin=mysql_native_password" postgres: image: postgres env: POSTGRES_USER: postgres POSTGRES_PASSWORD: postgres POSTGRES_DB: test + mssql: + image: mcr.microsoft.com/mssql/server:2019-latest + env: + ACCEPT_EULA: Y + SA_PASSWORD: '' + oracle: + image: gvenzl/oracle-xe:21-slim-faststart + env: + ORACLE_PASSWORD: pass strategy: fail-fast: false matrix: @@ -52,19 +64,6 @@ jobs: runs-on: ubuntu-22.04 container: image: "${{ matrix.alpine && 'alpine:3.15' || 'ubuntu:focal' }}" - services: - mysql: - image: mysql:8 - options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=5 -e MYSQL_ROOT_PASSWORD=rootu -e MYSQL_USER=useru -e MYSQL_PASSWORD=userp -e MYSQL_DATABASE=test --entrypoint sh mysql:8 -c "exec docker-entrypoint.sh mysqld --default-authentication-plugin=mysql_native_password" - mssql: - image: mcr.microsoft.com/mssql/server:2019-latest - env: - ACCEPT_EULA: Y - SA_PASSWORD: '' - oracle: - image: gvenzl/oracle-xe:21-slim-faststart - env: - ORACLE_PASSWORD: pass steps: - name: apt install bash/git if: matrix.alpine