diff options
author | Nextcloud bot <bot@nextcloud.com> | 2022-10-15 17:44:18 +0300 |
---|---|---|
committer | Nextcloud bot <bot@nextcloud.com> | 2022-10-15 17:44:18 +0300 |
commit | 3d325fbf38d216bc591081a34ad1f0af01549ed8 (patch) | |
tree | ea5b79da05e9327248dda1f8d2added655a50f68 | |
parent | 0d1532936f52d6f40e413b0b20f0283389a218ea (diff) |
Updating phpunit-sqlite.yml workflow from templatefeat/workflow-auto-update-phpunit-sqlite.yml
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
-rw-r--r-- | .github/workflows/phpunit-sqlite.yml | 20 |
1 files 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 |