Skip to content

Commit

Permalink
test(integration): add database services
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Schiwon <[email protected]>
  • Loading branch information
blizzz committed Apr 29, 2024
1 parent 3058517 commit d452e5d
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ env:

jobs:
changes:
runs-on: ubuntu-latest-low
runs-on: ubuntu-latest

outputs:
src: ${{ steps.changes.outputs.src}}
Expand Down Expand Up @@ -60,9 +60,6 @@ jobs:
- server-versions: "stable28"
php-versions: "8.2"
databases: "sqlite"
- server-versions: "stable28"
php-versions: "8.2"
databases: "oci"
- server-versions: "stable28"
php-versions: "8.2"
databases: "pgsql"
Expand All @@ -72,6 +69,22 @@ jobs:
#container: ubuntu

services:
postgres:
image: postgres:14
ports:
- 4445:5432/tcp
env:
POSTGRES_USER: root
POSTGRES_PASSWORD: rootpassword
POSTGRES_DB: nextcloud
options: --health-cmd pg_isready --health-interval 5s --health-timeout 2s --health-retries 5
mysql:
image: mariadb:10.5
ports:
- 4444:3306/tcp
env:
MYSQL_ROOT_PASSWORD: rootpassword
options: --health-cmd="mysqladmin ping" --health-interval 5s --health-timeout 2s --health-retries 5
directory:
image: ghcr.io/nextcloud/continuous-integration-user_saml-dirsrv:latest
ports:
Expand Down Expand Up @@ -102,7 +115,7 @@ jobs:
with:
php-version: ${{ matrix.php-versions }}
# https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html#prerequisites-for-manual-installation
extensions: bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, sqlite, pdo_sqlite
extensions: bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, sqlite, pdo_sqlite, mysql, pdo_mysql, pgsql, pdo_pgsql
coverage: none
ini-file: production
ini-values: disabled_functions=
Expand Down

0 comments on commit d452e5d

Please sign in to comment.