Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Try to fix phpunit installation
Signed-off-by: Côme Chilliet <[email protected]>
  • Loading branch information
come-nc committed Jan 26, 2023
commit 77c7b5eb28c19dbe60297d136ab57e0c1a1134c0
21 changes: 8 additions & 13 deletions .github/workflows/phpunit-mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ jobs:
runs-on: ubuntu-latest

strategy:
# do not stop on another job's failure
fail-fast: false
matrix:
php-versions: ['8.1', '8.2']
server-versions: ['master']

services:
mysql:
Expand All @@ -31,11 +32,6 @@ jobs:
options: --health-cmd="mysqladmin ping" --health-interval 5s --health-timeout 2s --health-retries 5

steps:
- name: Set app env
run: |
# Split and keep last
echo "APP_NAME=${GITHUB_REPOSITORY##*/}" >> $GITHUB_ENV

- name: Enable ONLY_FULL_GROUP_BY MySQL option
run: |
echo "SET GLOBAL sql_mode=(SELECT CONCAT(@@sql_mode,',ONLY_FULL_GROUP_BY'));" | mysql -h 127.0.0.1 -P 4444 -u root -prootpassword
Expand All @@ -45,20 +41,18 @@ jobs:
uses: actions/checkout@v3
with:
submodules: true
repository: nextcloud/server
ref: ${{ matrix.server-versions }}

- name: Set up php ${{ matrix.php-versions }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
tools: phpunit
extensions: mbstring, iconv, fileinfo, intl, mysql, pdo_mysql
coverage: none

- name: Set up PHPUnit
working-directory: apps/${{ env.APP_NAME }}
run: composer i
- name: composer i
run: |
composer i
composer require --dev phpunit/phpunit

- name: Set up Nextcloud
env:
Expand All @@ -68,7 +62,8 @@ jobs:
./occ maintenance:install --verbose --database=mysql --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

- name: PHPUnit
run: NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh sqlite
working-directory: tests
run: ../vendor/bin/phpunit --configuration phpunit-autotest.xml --group DB,SLOWDB

summary:
runs-on: ubuntu-latest
Expand Down
128 changes: 0 additions & 128 deletions .github/workflows/s3-external.yml

This file was deleted.

76 changes: 0 additions & 76 deletions .github/workflows/s3-primary.yml

This file was deleted.

64 changes: 0 additions & 64 deletions .github/workflows/smb-kerberos.yml

This file was deleted.