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

github.com/nextcloud/files_automatedtagging.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNextcloud bot <bot@nextcloud.com>2022-10-17 09:16:24 +0300
committerNextcloud bot <bot@nextcloud.com>2022-10-17 09:16:24 +0300
commit79f74461d46afde6f8e823fca3f7f55ee842b737 (patch)
treed079dad9bbf3386d015d016c49be0874b2253ac6
parent220b4e3700aac27027ff4f103c07bc7151a90442 (diff)
Updating phpunit-pgsql.yml workflow from template
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
-rw-r--r--.github/workflows/phpunit-pgsql.yml26
1 files changed, 25 insertions, 1 deletions
diff --git a/.github/workflows/phpunit-pgsql.yml b/.github/workflows/phpunit-pgsql.yml
index 1596c11..ea87fb8 100644
--- a/.github/workflows/phpunit-pgsql.yml
+++ b/.github/workflows/phpunit-pgsql.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-pgsql-${{ 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
@@ -67,7 +83,15 @@ jobs:
extensions: mbstring, iconv, fileinfo, intl, pgsql, pdo_pgsql
coverage: none
+ - name: Check composer file existence
+ id: check_composer
+ uses: andstor/file-existence-action@v1
+ with:
+ files: apps/${{ env.APP_NAME }}/composer.json
+
- name: Set up PHPUnit
+ # Only run if phpunit config file exists
+ if: steps.check_composer.outputs.files_exists == 'true'
working-directory: apps/${{ env.APP_NAME }}
run: composer i
@@ -77,7 +101,7 @@ jobs:
run: |
mkdir data
./occ maintenance:install --verbose --database=pgsql --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