Updating phpunit-sqlite.yml workflow from template
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
This commit is contained in:
Родитель
5b818d032a
Коммит
cbe2711108
|
@ -7,6 +7,18 @@ name: PHPUnit
|
|||
|
||||
on:
|
||||
pull_request:
|
||||
paths:
|
||||
- '.github/workflows/**'
|
||||
- 'appinfo/**'
|
||||
- 'lib/**'
|
||||
- 'templates/**'
|
||||
- 'tests/**'
|
||||
- 'vendor/**'
|
||||
- 'vendor-bin/**'
|
||||
- '.php-cs-fixer.dist.php'
|
||||
- 'composer.json'
|
||||
- 'composer.lock'
|
||||
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
@ -16,6 +28,10 @@ on:
|
|||
permissions:
|
||||
contents: read
|
||||
|
||||
concurrency:
|
||||
group: phpunit-sqlite-${{ github.head_ref || github.run_id }}
|
||||
cancel-in-progress: true
|
||||
|
||||
env:
|
||||
# Location of the phpunit.xml and phpunit.integration.xml files
|
||||
PHPUNIT_CONFIG: ./tests/phpunit.xml
|
||||
|
@ -27,7 +43,7 @@ jobs:
|
|||
|
||||
strategy:
|
||||
matrix:
|
||||
php-versions: ['7.4', '8.0', '8.1']
|
||||
php-versions: ['8.0']
|
||||
server-versions: ['master']
|
||||
|
||||
steps:
|
||||
|
@ -74,7 +90,7 @@ jobs:
|
|||
run: |
|
||||
mkdir data
|
||||
./occ maintenance:install --verbose --database=sqlite --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
|
||||
./occ app:enable ${{ env.APP_NAME }}
|
||||
./occ app:enable --force ${{ env.APP_NAME }}
|
||||
|
||||
- name: Check PHPUnit config file existence
|
||||
id: check_phpunit
|
||||
|
|
Загрузка…
Ссылка в новой задаче