From cbe2711108d013f8d308f59562f9e80a8c996bbf Mon Sep 17 00:00:00 2001 From: Nextcloud bot Date: Sat, 15 Oct 2022 14:42:46 +0000 Subject: [PATCH] Updating phpunit-sqlite.yml workflow from template Signed-off-by: Nextcloud bot --- .github/workflows/phpunit-sqlite.yml | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/.github/workflows/phpunit-sqlite.yml b/.github/workflows/phpunit-sqlite.yml index 9a86fea..f820263 100644 --- a/.github/workflows/phpunit-sqlite.yml +++ b/.github/workflows/phpunit-sqlite.yml @@ -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