summaryrefslogtreecommitdiff
path: root/vendor/doctrine/persistence/.github
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/doctrine/persistence/.github')
-rw-r--r--vendor/doctrine/persistence/.github/workflows/coding-standards.yml50
-rw-r--r--vendor/doctrine/persistence/.github/workflows/continuous-integration.yml79
-rw-r--r--vendor/doctrine/persistence/.github/workflows/release-on-milestone-closed.yml55
-rw-r--r--vendor/doctrine/persistence/.github/workflows/static-analysis.yml64
4 files changed, 248 insertions, 0 deletions
diff --git a/vendor/doctrine/persistence/.github/workflows/coding-standards.yml b/vendor/doctrine/persistence/.github/workflows/coding-standards.yml
new file mode 100644
index 0000000..18fcfa0
--- /dev/null
+++ b/vendor/doctrine/persistence/.github/workflows/coding-standards.yml
@@ -0,0 +1,50 @@
+
+name: "Coding Standards"
+
+on:
+ pull_request:
+ branches:
+ - "*.x"
+ - "master"
+ push:
+ branches:
+ - "*.x"
+ - "master"
+
+env:
+ COMPOSER_ROOT_VERSION: "2.1"
+
+jobs:
+ coding-standards:
+ name: "Coding Standards"
+ runs-on: "ubuntu-20.04"
+
+ strategy:
+ matrix:
+ php-version:
+ - "7.4"
+
+ steps:
+ - name: "Checkout"
+ uses: "actions/checkout@v2"
+
+ - name: "Install PHP"
+ uses: "shivammathur/setup-php@v2"
+ with:
+ coverage: "none"
+ php-version: "${{ matrix.php-version }}"
+ tools: "cs2pr"
+
+ - name: "Cache dependencies installed with Composer"
+ uses: "actions/cache@v2"
+ with:
+ path: "~/.composer/cache"
+ key: "php-${{ matrix.php-version }}-composer-locked-${{ hashFiles('composer.lock') }}"
+ restore-keys: "php-${{ matrix.php-version }}-composer-locked-"
+
+ - name: "Install dependencies with Composer"
+ run: "composer install --no-interaction --no-progress --no-suggest"
+
+ # https://github.com/doctrine/.github/issues/3
+ - name: "Run PHP_CodeSniffer"
+ run: "vendor/bin/phpcs -q --no-colors --report=checkstyle | cs2pr"
diff --git a/vendor/doctrine/persistence/.github/workflows/continuous-integration.yml b/vendor/doctrine/persistence/.github/workflows/continuous-integration.yml
new file mode 100644
index 0000000..eb32fcb
--- /dev/null
+++ b/vendor/doctrine/persistence/.github/workflows/continuous-integration.yml
@@ -0,0 +1,79 @@
+
+name: "Continuous Integration"
+
+on:
+ pull_request: null
+
+env:
+ COMPOSER_ROOT_VERSION: "2.1"
+
+jobs:
+ phpunit:
+ name: "PHPUnit"
+ runs-on: "ubuntu-20.04"
+
+ strategy:
+ matrix:
+ php-version:
+ - "7.1"
+ - "7.2"
+ - "7.3"
+ - "7.4"
+ - "8.0"
+ deps:
+ - "normal"
+ include:
+ - deps: "low"
+ php-version: "7.1"
+
+ steps:
+ - name: "Checkout"
+ uses: "actions/checkout@v2"
+ with:
+ fetch-depth: 2
+
+ - name: "Install PHP with pcov"
+ uses: "shivammathur/setup-php@v2"
+ if: "${{ matrix.php-version != '7.1' }}"
+ with:
+ php-version: "${{ matrix.php-version }}"
+ coverage: "pcov"
+
+ - name: "Install PHP with xdebug"
+ uses: "shivammathur/setup-php@v2"
+ if: "${{ matrix.php-version == '7.1' }}"
+ with:
+ php-version: "${{ matrix.php-version }}"
+ coverage: "xdebug"
+
+ - name: "Cache dependencies installed with composer"
+ uses: "actions/cache@v2"
+ with:
+ path: "~/.composer/cache"
+ key: "php-${{ matrix.php-version }}-composer-locked-${{ hashFiles('composer.lock') }}"
+ restore-keys: "php-${{ matrix.php-version }}-composer-locked-"
+
+ # Remove this block when
+ # https://github.com/felixfbecker/php-language-server-protocol/pull/15 is
+ # merged and released
+ - name: "Remove dependency on vimeo/psalm for PHP8"
+ run: "composer remove --dev --no-update vimeo/psalm"
+ if: "${{ matrix.php-version == '8.0' }}"
+
+ - name: "Downgrade Composer"
+ run: "composer self-update --1"
+ if: "${{ matrix.php-version == '7.1' }}"
+
+ - name: "Update dependencies with composer"
+ run: "composer update --no-interaction --no-progress --no-suggest"
+ if: "${{ matrix.deps == 'normal' }}"
+
+ - name: "Install lowest possible dependencies with composer"
+ run: "composer update --no-interaction --no-progress --no-suggest --prefer-dist --prefer-lowest"
+ if: "${{ matrix.deps == 'low' }}"
+
+ - name: "Run PHPUnit"
+ run: "vendor/bin/phpunit --coverage-clover=coverage.xml"
+
+ - name: "Upload to Codecov"
+ uses: "codecov/codecov-action@v1"
diff --git a/vendor/doctrine/persistence/.github/workflows/release-on-milestone-closed.yml b/vendor/doctrine/persistence/.github/workflows/release-on-milestone-closed.yml
new file mode 100644
index 0000000..70ccbdb
--- /dev/null
+++ b/vendor/doctrine/persistence/.github/workflows/release-on-milestone-closed.yml
@@ -0,0 +1,55 @@
+name: "Automatic Releases"
+
+on:
+ milestone:
+ types:
+ - "closed"
+
+jobs:
+ release:
+ name: "Git tag, release & create merge-up PR"
+ runs-on: "ubuntu-20.04"
+
+ steps:
+ - name: "Checkout"
+ uses: "actions/checkout@v2"
+
+ - name: "Release"
+ uses: "laminas/automatic-releases@v1"
+ with:
+ command-name: "laminas:automatic-releases:release"
+ env:
+ "GITHUB_TOKEN": ${{ secrets.GITHUB_TOKEN }}
+ "SIGNING_SECRET_KEY": ${{ secrets.SIGNING_SECRET_KEY }}
+ "GIT_AUTHOR_NAME": ${{ secrets.GIT_AUTHOR_NAME }}
+ "GIT_AUTHOR_EMAIL": ${{ secrets.GIT_AUTHOR_EMAIL }}
+
+ - name: "Create Merge-Up Pull Request"
+ uses: "laminas/automatic-releases@v1"
+ with:
+ command-name: "laminas:automatic-releases:create-merge-up-pull-request"
+ env:
+ "GITHUB_TOKEN": ${{ secrets.GITHUB_TOKEN }}
+ "SIGNING_SECRET_KEY": ${{ secrets.SIGNING_SECRET_KEY }}
+ "GIT_AUTHOR_NAME": ${{ secrets.GIT_AUTHOR_NAME }}
+ "GIT_AUTHOR_EMAIL": ${{ secrets.GIT_AUTHOR_EMAIL }}
+
+ - name: "Create and/or Switch to new Release Branch"
+ uses: "laminas/automatic-releases@v1"
+ with:
+ command-name: "laminas:automatic-releases:switch-default-branch-to-next-minor"
+ env:
+ "GITHUB_TOKEN": ${{ secrets.ORGANIZATION_ADMIN_TOKEN }}
+ "SIGNING_SECRET_KEY": ${{ secrets.SIGNING_SECRET_KEY }}
+ "GIT_AUTHOR_NAME": ${{ secrets.GIT_AUTHOR_NAME }}
+ "GIT_AUTHOR_EMAIL": ${{ secrets.GIT_AUTHOR_EMAIL }}
+
+ - name: "Create new milestones"
+ uses: "laminas/automatic-releases@v1"
+ with:
+ command-name: "laminas:automatic-releases:create-milestones"
+ env:
+ "GITHUB_TOKEN": ${{ secrets.GITHUB_TOKEN }}
+ "SIGNING_SECRET_KEY": ${{ secrets.SIGNING_SECRET_KEY }}
+ "GIT_AUTHOR_NAME": ${{ secrets.GIT_AUTHOR_NAME }}
+ "GIT_AUTHOR_EMAIL": ${{ secrets.GIT_AUTHOR_EMAIL }}
diff --git a/vendor/doctrine/persistence/.github/workflows/static-analysis.yml b/vendor/doctrine/persistence/.github/workflows/static-analysis.yml
new file mode 100644
index 0000000..5288ee1
--- /dev/null
+++ b/vendor/doctrine/persistence/.github/workflows/static-analysis.yml
@@ -0,0 +1,64 @@
+
+name: "Static Analysis"
+
+on:
+ pull_request:
+ branches:
+ - "*.x"
+ - "master"
+ push:
+ branches:
+ - "*.x"
+ - "master"
+env:
+ COMPOSER_ROOT_VERSION: "2.1"
+
+jobs:
+ static-analysis-phpstan:
+ name: "Static Analysis with PHPStan"
+ runs-on: "ubuntu-20.04"
+
+ strategy:
+ matrix:
+ php-version:
+ - "7.4"
+
+ steps:
+ - name: "Checkout code"
+ uses: "actions/checkout@v2"
+
+ - name: "Install PHP"
+ uses: "shivammathur/setup-php@v2"
+ with:
+ coverage: "none"
+ php-version: "${{ matrix.php-version }}"
+ tools: "cs2pr"
+
+ - name: "Cache dependencies installed with composer"
+ uses: "actions/cache@v2"
+ with:
+ path: "~/.composer/cache"
+ key: "php-${{ matrix.php-version }}-composer-locked-${{ hashFiles('composer.lock') }}"
+ restore-keys: "php-${{ matrix.php-version }}-composer-locked-"
+
+ - name: "Install dependencies with composer"
+ run: "composer install --no-interaction --no-progress --no-suggest"
+
+ - name: "Run a static analysis with phpstan/phpstan"
+ run: "vendor/bin/phpstan analyse --error-format=checkstyle | cs2pr"
+
+ static-analysis-psalm:
+ name: "Static Analysis with Psalm"
+ runs-on: "ubuntu-20.04"
+
+ strategy:
+ matrix:
+ php-version:
+ - "7.4"
+
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v2
+
+ - name: Psalm
+ uses: docker://vimeo/psalm-github-actions