Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/impersonate.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2022-04-04 12:16:43 +0300
committerCôme Chilliet <come.chilliet@nextcloud.com>2022-04-04 12:16:43 +0300
commit5a46b1c69f15905af607f7805346774ef8d93ab5 (patch)
tree4f8cdafeaad80fa2e9bb3861281c9bca83f50744 /.github
parentbd48aebc93facc42040bb6872420b21756927e76 (diff)
Align phpunit.yml with other applications
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/phpunit.yml58
1 files changed, 37 insertions, 21 deletions
diff --git a/.github/workflows/phpunit.yml b/.github/workflows/phpunit.yml
index c9b0a5a..386003c 100644
--- a/.github/workflows/phpunit.yml
+++ b/.github/workflows/phpunit.yml
@@ -22,7 +22,7 @@ jobs:
databases: ['sqlite']
server-versions: ['master']
- name: php${{ matrix.php-versions }}-${{ matrix.databases }}
+ name: php${{ matrix.php-versions }}-${{ matrix.databases }}-${{ matrix.server-versions }}
steps:
- name: Checkout server
@@ -47,22 +47,26 @@ jobs:
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
+ tools: phpunit
extensions: mbstring, iconv, fileinfo, intl, sqlite, pdo_sqlite
- tools: phpunit:8.5.13
coverage: none
+ - name: Set up PHPUnit
+ working-directory: apps/${{ env.APP_NAME }}
+ run: composer i
+
- name: Set up Nextcloud
env:
DB_PORT: 4444
run: |
mkdir data
./occ maintenance:install --verbose --database=${{ matrix.databases }} --database-name=nextcloud --database-host=127.0.0.1 --database-port=$DB_PORT --database-user=root --database-pass=rootpassword --admin-user admin --admin-pass password
- php -f index.php
./occ app:enable --force ${{ env.APP_NAME }}
+ php -S localhost:8080 &
- name: PHPUnit
- working-directory: apps/${{ env.APP_NAME }}/tests/unit
- run: phpunit -c phpunit.xml
+ working-directory: apps/${{ env.APP_NAME }}/tests
+ run: ../vendor/bin/phpunit -c phpunit.xml
mysql:
runs-on: ubuntu-latest
@@ -71,11 +75,11 @@ jobs:
# do not stop on another job's failure
fail-fast: false
matrix:
- php-versions: ['7.4', '8.0', "8.1"]
+ php-versions: ['7.4', '8.0', '8.1']
databases: ['mysql']
server-versions: ['master']
- name: php${{ matrix.php-versions }}-${{ matrix.databases }}
+ name: php${{ matrix.php-versions }}-${{ matrix.databases }}-${{ matrix.server-versions }}
services:
mysql:
@@ -109,22 +113,26 @@ jobs:
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
- extensions: mbstring, iconv, fileinfo, intl, mysql, pdo_mysql
- tools: phpunit:8.5.13
+ tools: phpunit
+ extensions: mbstring, iconv, fileinfo, intl, mysql, pdo_mysql, zip, gd
coverage: none
+ - name: Set up PHPUnit
+ working-directory: apps/${{ env.APP_NAME }}
+ run: composer i
+
- name: Set up Nextcloud
env:
DB_PORT: 4444
run: |
mkdir data
./occ maintenance:install --verbose --database=${{ matrix.databases }} --database-name=nextcloud --database-host=127.0.0.1 --database-port=$DB_PORT --database-user=root --database-pass=rootpassword --admin-user admin --admin-pass password
- php -f index.php
./occ app:enable --force ${{ env.APP_NAME }}
+ php -S localhost:8080 &
- name: PHPUnit
- working-directory: apps/${{ env.APP_NAME }}/tests/unit
- run: phpunit -c phpunit.xml
+ working-directory: apps/${{ env.APP_NAME }}/tests
+ run: ../vendor/bin/phpunit -c phpunit.xml
pgsql:
runs-on: ubuntu-latest
@@ -137,7 +145,7 @@ jobs:
databases: ['pgsql']
server-versions: ['master']
- name: php${{ matrix.php-versions }}-${{ matrix.databases }}
+ name: php${{ matrix.php-versions }}-${{ matrix.databases }}-${{ matrix.server-versions }}
services:
postgres:
@@ -173,22 +181,26 @@ jobs:
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
+ tools: phpunit
extensions: mbstring, iconv, fileinfo, intl, pgsql, pdo_pgsql
- tools: phpunit:8.5.13
coverage: none
+ - name: Set up PHPUnit
+ working-directory: apps/${{ env.APP_NAME }}
+ run: composer i
+
- name: Set up Nextcloud
env:
DB_PORT: 4444
run: |
mkdir data
./occ maintenance:install --verbose --database=${{ matrix.databases }} --database-name=nextcloud --database-host=127.0.0.1 --database-port=$DB_PORT --database-user=root --database-pass=rootpassword --admin-user admin --admin-pass password
- php -f index.php
./occ app:enable --force ${{ env.APP_NAME }}
+ php -S localhost:8080 &
- name: PHPUnit
- working-directory: apps/${{ env.APP_NAME }}/tests/unit
- run: phpunit -c phpunit.xml
+ working-directory: apps/${{ env.APP_NAME }}/tests
+ run: ../vendor/bin/phpunit -c phpunit.xml
oci:
runs-on: ubuntu-latest
@@ -201,7 +213,7 @@ jobs:
databases: ['oci']
server-versions: ['master']
- name: php${{ matrix.php-versions }}-${{ matrix.databases }}
+ name: php${{ matrix.php-versions }}-${{ matrix.databases }}-${{ matrix.server-versions }}
services:
oracle:
@@ -233,9 +245,13 @@ jobs:
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring, iconv, fileinfo, intl, oci8
- tools: phpunit:8.5.13
+ tools: phpunit
coverage: none
+ - name: Set up PHPUnit
+ working-directory: apps/${{ env.APP_NAME }}
+ run: composer i
+
- name: Set up Nextcloud
run: |
mkdir data
@@ -244,5 +260,5 @@ jobs:
./occ app:enable --force ${{ env.APP_NAME }}
- name: PHPUnit
- working-directory: apps/${{ env.APP_NAME }}/tests/unit
- run: phpunit -c phpunit.xml
+ working-directory: apps/${{ env.APP_NAME }}/tests
+ run: ../vendor/bin/phpunit -c phpunit.xml