Skip to content

Commit

Permalink
fixup! Move travis phpunit to github actions
Browse files Browse the repository at this point in the history
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
  • Loading branch information
skjnldsv committed Feb 4, 2020
1 parent b56de15 commit c775938
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,20 @@ jobs:
# do not stop on another job's failure
fail-fast: false
matrix:
php-versions: ['7.2', '7.3', '7.4']
databases: ['sqlite', 'mysql']
php-versions: ['7.4']
databases: ['mysql']
server-versions: ['master']

name: php${{ matrix.php-versions }}/${{ matrix.databases }} on ${{ matrix.server-versions }}

services:
mariadb:
image: mariadb:latest
mysql:
image: mariadb
ports:
- 3306
- 3306/tcp
env:
MYSQL_USER: nextcloud
MYSQL_PASSWORD: password
MYSQL_DATABASE: nextcloud
MYSQL_ROOT_PASSWORD: rootpassword
options: --health-cmd="mysqladmin ping" --health-interval=5s --health-timeout=2s --health-retries=3
# postgres:
Expand All @@ -46,7 +45,7 @@ jobs:
uses: actions/checkout@v2
with:
repository: nextcloud/server
ref: ${{ matrix.server-versions }}
ref: test/debug-install
- name: Checkout submodules
shell: bash
run: |
Expand All @@ -62,12 +61,18 @@ jobs:
with:
php-version: ${{ matrix.php-versions }}
tools: phpunit
extensions: intl, pdo_mysql, pdo_pgsql
extensions: mbstring, iconv, fileinfo, intl, sqlite, pdo_sqlite, mysql, pdo_mysql, pgsql, pdo_pgsql
coverage: none
- name: Verify MariaDB connection
env:
# get the random port from the service
DB_PORT: ${{ job.services.mysql.ports['3306'] }}
run: mysql --host=127.0.0.1 --port=$DB_PORT -uroot -prootpassword -e "SHOW DATABASES;"

- name: Set up nextcloud
env:
# get the random port from the service
DB_PORT: ${{ job.services.mariadb.ports['3306'] }}
DB_PORT: ${{ job.services.mysql.ports['3306'] }}
run: |
pwd
ls -la
Expand Down

0 comments on commit c775938

Please sign in to comment.