diff --git a/php-library-template/.editorconfig b/.editorconfig similarity index 100% rename from php-library-template/.editorconfig rename to .editorconfig diff --git a/php-library-template/.gitattributes b/.gitattributes similarity index 100% rename from php-library-template/.gitattributes rename to .gitattributes diff --git a/php-library-template/.github/CODEOWNERS b/.github/CODEOWNERS similarity index 100% rename from php-library-template/.github/CODEOWNERS rename to .github/CODEOWNERS diff --git a/php-library-template/.github/CODE_OF_CONDUCT.md b/.github/CODE_OF_CONDUCT.md similarity index 100% rename from php-library-template/.github/CODE_OF_CONDUCT.md rename to .github/CODE_OF_CONDUCT.md diff --git a/php-library-template/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md similarity index 100% rename from php-library-template/.github/CONTRIBUTING.md rename to .github/CONTRIBUTING.md diff --git a/php-library-template/.github/FUNDING.yml b/.github/FUNDING.yml similarity index 100% rename from php-library-template/.github/FUNDING.yml rename to .github/FUNDING.yml diff --git a/php-library-template/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md similarity index 100% rename from php-library-template/.github/ISSUE_TEMPLATE.md rename to .github/ISSUE_TEMPLATE.md diff --git a/php-library-template/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md similarity index 100% rename from php-library-template/.github/PULL_REQUEST_TEMPLATE.md rename to .github/PULL_REQUEST_TEMPLATE.md diff --git a/php-library-template/.github/actions/composer/composer/determine-cache-directory/action.yaml b/.github/actions/composer/composer/determine-cache-directory/action.yaml similarity index 100% rename from php-library-template/.github/actions/composer/composer/determine-cache-directory/action.yaml rename to .github/actions/composer/composer/determine-cache-directory/action.yaml diff --git a/php-library-template/.github/actions/composer/composer/install/action.yaml b/.github/actions/composer/composer/install/action.yaml similarity index 100% rename from php-library-template/.github/actions/composer/composer/install/action.yaml rename to .github/actions/composer/composer/install/action.yaml diff --git a/php-library-template/.github/actions/composer/composer/install/run.sh b/.github/actions/composer/composer/install/run.sh similarity index 100% rename from php-library-template/.github/actions/composer/composer/install/run.sh rename to .github/actions/composer/composer/install/run.sh diff --git a/php-library-template/.github/dependabot.yaml b/.github/dependabot.yaml similarity index 100% rename from php-library-template/.github/dependabot.yaml rename to .github/dependabot.yaml diff --git a/php-library-template/.github/settings.yml b/.github/settings.yml similarity index 100% rename from php-library-template/.github/settings.yml rename to .github/settings.yml diff --git a/php-library-template/.github/workflows/integrate.yaml b/.github/workflows/integrate.yaml similarity index 100% rename from php-library-template/.github/workflows/integrate.yaml rename to .github/workflows/integrate.yaml diff --git a/php-library-template/.github/workflows/prune.yaml b/.github/workflows/prune.yaml similarity index 100% rename from php-library-template/.github/workflows/prune.yaml rename to .github/workflows/prune.yaml diff --git a/php-library-template/.github/workflows/release.yaml b/.github/workflows/release.yaml similarity index 100% rename from php-library-template/.github/workflows/release.yaml rename to .github/workflows/release.yaml diff --git a/php-library-template/.github/workflows/renew.yaml b/.github/workflows/renew.yaml similarity index 100% rename from php-library-template/.github/workflows/renew.yaml rename to .github/workflows/renew.yaml diff --git a/php-library-template/.gitignore b/.gitignore similarity index 100% rename from php-library-template/.gitignore rename to .gitignore diff --git a/php-library-template/.gitpod.Dockerfile b/.gitpod.Dockerfile similarity index 100% rename from php-library-template/.gitpod.Dockerfile rename to .gitpod.Dockerfile diff --git a/php-library-template/.gitpod.yml b/.gitpod.yml similarity index 100% rename from php-library-template/.gitpod.yml rename to .gitpod.yml diff --git a/php-library-template/.phive/composer-require-checker b/.phive/composer-require-checker similarity index 100% rename from php-library-template/.phive/composer-require-checker rename to .phive/composer-require-checker diff --git a/php-library-template/.phive/phars.xml b/.phive/phars.xml similarity index 100% rename from php-library-template/.phive/phars.xml rename to .phive/phars.xml diff --git a/yii-cloud-tasks/.php_cs b/.php_cs similarity index 100% rename from yii-cloud-tasks/.php_cs rename to .php_cs diff --git a/php-library-template/.yamllint.yaml b/.yamllint.yaml similarity index 100% rename from php-library-template/.yamllint.yaml rename to .yamllint.yaml diff --git a/yii-cloud-tasks/CHANGELOG.md b/CHANGELOG.md similarity index 100% rename from yii-cloud-tasks/CHANGELOG.md rename to CHANGELOG.md diff --git a/php-library-template/Integration/phpunit.xml b/Integration/phpunit.xml similarity index 100% rename from php-library-template/Integration/phpunit.xml rename to Integration/phpunit.xml diff --git a/php-library-template/LICENSE.md b/LICENSE.md similarity index 100% rename from php-library-template/LICENSE.md rename to LICENSE.md diff --git a/php-library-template/Makefile b/Makefile similarity index 100% rename from php-library-template/Makefile rename to Makefile diff --git a/yii-cloud-tasks/README.md b/README.md similarity index 100% rename from yii-cloud-tasks/README.md rename to README.md diff --git a/yii-cloud-tasks/Unit/ExampleTest.php b/Unit/ExampleTest.php similarity index 100% rename from yii-cloud-tasks/Unit/ExampleTest.php rename to Unit/ExampleTest.php diff --git a/php-library-template/Unit/phpunit.xml b/Unit/phpunit.xml similarity index 100% rename from php-library-template/Unit/phpunit.xml rename to Unit/phpunit.xml diff --git a/php-library-template/composer-require-checker.json b/composer-require-checker.json similarity index 100% rename from php-library-template/composer-require-checker.json rename to composer-require-checker.json diff --git a/yii-cloud-tasks/composer.json b/composer.json similarity index 97% rename from yii-cloud-tasks/composer.json rename to composer.json index 1817eac..8ab3fb5 100644 --- a/yii-cloud-tasks/composer.json +++ b/composer.json @@ -34,7 +34,7 @@ "phpstan/phpstan-deprecation-rules": "~0.12.6", "phpstan/phpstan-phpunit": "~0.12.17", "phpstan/phpstan-strict-rules": "~0.12.9", - "phpunit/phpunit": "~9.2.6", + "../../vendor/phpunit/phpunit": "~9.2.6", "psalm/plugin-phpunit": "~0.15.1", "vimeo/psalm": "^4.5.1" }, diff --git a/php-library-template/infection.json b/infection.json similarity index 100% rename from php-library-template/infection.json rename to infection.json diff --git a/php-library-template/.php_cs b/php-library-template/.php_cs deleted file mode 100644 index 9bbd1dd..0000000 --- a/php-library-template/.php_cs +++ /dev/null @@ -1,43 +0,0 @@ -save(); - -$config = PhpCsFixer\Config\Factory::fromRuleSet(new PhpCsFixer\Config\RuleSet\Php73($license->header())); - -$config->getFinder() - ->exclude([ - '.build/', - '.github/', - '.notes/', - ]) - ->ignoreDotFiles(false) - ->in(__DIR__) - ->name('.php_cs'); - -$config->setCacheFile(__DIR__ . '/.build/php-cs-fixer/.php_cs.cache'); - -return $config; diff --git a/php-library-template/CHANGELOG.md b/php-library-template/CHANGELOG.md deleted file mode 100644 index c6209e8..0000000 --- a/php-library-template/CHANGELOG.md +++ /dev/null @@ -1,11 +0,0 @@ -# Changelog - -All notable changes to this project will be documented in this file. - -The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). - -## Unreleased - -For a full diff see [`1902cc2...main`][1902cc2...main]. - -[1902cc2...main]: https://github.com/inquid/php-library-template/compare/1902cc2...main diff --git a/php-library-template/README.md b/php-library-template/README.md deleted file mode 100644 index 77c01b7..0000000 --- a/php-library-template/README.md +++ /dev/null @@ -1,50 +0,0 @@ -[![Gitpod ready-to-code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/inquid/php-library-template) - -# inquid-library-template - -[![Integrate](https://github.com/inquid/php-library-template/workflows/Integrate/badge.svg)](https://github.com/inquid/php-library-template/actions) -[![Prune](https://github.com/inquid/php-library-template/workflows/Prune/badge.svg)](https://github.com/inquid/php-library-template/actions) -[![Release](https://github.com/inquid/php-library-template/workflows/Release/badge.svg)](https://github.com/inquid/php-library-template/actions) -[![Renew](https://github.com/inquid/php-library-template/workflows/Renew/badge.svg)](https://github.com/inquid/php-library-template/actions) - -[![Code Coverage](https://codecov.io/gh/inquid/php-library-template/branch/main/graph/badge.svg)](https://codecov.io/gh/inquid/php-library-template) -[![Type Coverage](https://shepherd.dev/github/inquid/php-library-template/coverage.svg)](https://shepherd.dev/github/inquid/php-library-template) - -[![Latest Stable Version](https://poser.pugx.org/inquid/php-library-template/v/stable)](https://packagist.org/packages/inquid/php-library-template) -[![Total Downloads](https://poser.pugx.org/inquid/php-library-template/downloads)](https://packagist.org/packages/inquid/php-library-template) - -## Installation - -:bulb: This is a great place for showing how to install the package, see below: - -Run - -```sh -$ composer require inquid/php-library-template -``` - -## Usage - -:bulb: This is a great place for showing a few usage examples! - -## Changelog - -Please have a look at [`CHANGELOG.md`](CHANGELOG.md). - -## Contributing - -Please have a look at [`CONTRIBUTING.md`](.github/CONTRIBUTING.md). - -## Code of Conduct - -Please have a look at [`CODE_OF_CONDUCT.md`](.github/CODE_OF_CONDUCT.md). - -## License - -This package is licensed using the MIT License. - -Please have a look at [`LICENSE.md`](LICENSE.md). - -## Curious what I am building? - -:mailbox_with_mail: [Subscribe to my list](https://localheinz.com/projects/), and I will occasionally send you an email to let you know what I am working on. diff --git a/php-library-template/Unit/ExampleTest.php b/php-library-template/Unit/ExampleTest.php deleted file mode 100644 index a9cac58..0000000 --- a/php-library-template/Unit/ExampleTest.php +++ /dev/null @@ -1,37 +0,0 @@ -sentence; - - $example = Example::fromName($name); - - self::assertSame($name, $example->name()); - } -} diff --git a/php-library-template/composer.json b/php-library-template/composer.json deleted file mode 100644 index fea0b2f..0000000 --- a/php-library-template/composer.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "name": "inquid/php-library-template", - "type": "library", - "description": "Provides a GitHub repository template for a PHP library, using GitHub actions.", - "homepage": "https://github.com/inquid/php-library-template", - "license": "MIT", - "authors": [ - { - "name": "Andreas Möller", - "email": "am@localheinz.com" - }, - { - "name": "Inquid", - "email": "contact@inquid.co" - }, - { - "name": "Luis Gonzalez", - "email": "luisarmando1234@gmail.com" - } - ], - "require": { - "php": "^7.3 || ^8.0" - }, - "require-dev": { - "ergebnis/composer-normalize": "^2.13.2", - "ergebnis/license": "^1.1.0", - "ergebnis/php-cs-fixer-config": "~2.13.0", - "ergebnis/phpstan-rules": "~0.15.3", - "ergebnis/test-util": "^1.4.0", - "infection/infection": "~0.18.2", - "phpstan/extension-installer": "^1.1.0", - "phpstan/phpstan": "~0.12.75", - "phpstan/phpstan-deprecation-rules": "~0.12.6", - "phpstan/phpstan-phpunit": "~0.12.17", - "phpstan/phpstan-strict-rules": "~0.12.9", - "phpunit/phpunit": "~9.2.6", - "psalm/plugin-phpunit": "~0.15.1", - "vimeo/psalm": "^4.5.1" - }, - "config": { - "platform": { - "php": "7.3.24" - }, - "preferred-install": "dist", - "sort-packages": true - }, - "extra": { - "composer-normalize": { - "indent-size": 2, - "indent-style": "space" - } - }, - "autoload": { - "psr-4": { - "Inquid\\Library\\": "src/" - } - }, - "autoload-dev": { - "psr-4": { - "Inquid\\Library\\Test\\": "test/" - } - }, - "support": { - "issues": "https://github.com/inquid/php-library-template/issues", - "source": "https://github.com/inquid/php-library-template" - } -} diff --git a/php-library-template/src/Example.php b/php-library-template/src/Example.php deleted file mode 100644 index e0c5df1..0000000 --- a/php-library-template/src/Example.php +++ /dev/null @@ -1,34 +0,0 @@ -name = $name; - } - - public static function fromName(string $name): self - { - return new self($name); - } - - public function name(): string - { - return $this->name; - } -} diff --git a/php-library-template/test/AutoReview/SrcCodeTest.php b/php-library-template/test/AutoReview/SrcCodeTest.php deleted file mode 100644 index 5e3c1ee..0000000 --- a/php-library-template/test/AutoReview/SrcCodeTest.php +++ /dev/null @@ -1,36 +0,0 @@ -> $GITHUB_ENV" diff --git a/yii-cloud-tasks/.github/actions/composer/composer/install/action.yaml b/yii-cloud-tasks/.github/actions/composer/composer/install/action.yaml deleted file mode 100644 index bab262e..0000000 --- a/yii-cloud-tasks/.github/actions/composer/composer/install/action.yaml +++ /dev/null @@ -1,22 +0,0 @@ -# https://docs.github.com/en/actions/creating-actions/creating-a-composite-run-steps-action -# https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#inputs -# https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#runs-for-composite-run-steps-actions - -name: "Install dependencies with composer" - -description: "Installs dependencies with composer" - -inputs: - dependencies: - description: "Which dependencies to install, one of \"lowest\", \"locked\", \"highest\"" - required: true - -runs: - using: "composite" - - steps: - - name: "Install ${{ inputs.dependencies }} dependencies with composer" - shell: "bash" - run: "${{ github.action_path }}/run.sh" - env: - COMPOSER_INSTALL_DEPENDENCIES: "${{ inputs.dependencies }}" diff --git a/yii-cloud-tasks/.github/actions/composer/composer/install/run.sh b/yii-cloud-tasks/.github/actions/composer/composer/install/run.sh deleted file mode 100644 index a052ba6..0000000 --- a/yii-cloud-tasks/.github/actions/composer/composer/install/run.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/usr/bin/env bash - -dependencies="${COMPOSER_INSTALL_DEPENDENCIES}" - -if [[ ${dependencies} == "lowest" ]]; then - composer update --no-interaction --no-progress --prefer-lowest - - exit $? -fi - -if [[ ${dependencies} == "locked" ]]; then - composer install --no-interaction --no-progress - - exit $? -fi - -if [[ ${dependencies} == "highest" ]]; then - composer update --no-interaction --no-progress - - exit $? -fi - -echo "::error::The value for the \"dependencies\" input needs to be one of \"lowest\", \"locked\"', \"highest\"' - got \"${dependencies}\" instead." - -exit 1 diff --git a/yii-cloud-tasks/.github/dependabot.yaml b/yii-cloud-tasks/.github/dependabot.yaml deleted file mode 100644 index eb22ef0..0000000 --- a/yii-cloud-tasks/.github/dependabot.yaml +++ /dev/null @@ -1,27 +0,0 @@ -# https://docs.github.com/en/github/administering-a-repository/configuration-options-for-dependency-updates - -version: 2 - -updates: - - commit-message: - include: "scope" - prefix: "composer" - directory: "/" - labels: - - "dependency" - open-pull-requests-limit: 10 - package-ecosystem: "composer" - schedule: - interval: "daily" - versioning-strategy: "increase" - - - commit-message: - include: "scope" - prefix: "github-actions" - directory: "/" - labels: - - "dependency" - open-pull-requests-limit: 10 - package-ecosystem: "github-actions" - schedule: - interval: "daily" diff --git a/yii-cloud-tasks/.github/settings.yml b/yii-cloud-tasks/.github/settings.yml deleted file mode 100644 index 86eed49..0000000 --- a/yii-cloud-tasks/.github/settings.yml +++ /dev/null @@ -1,96 +0,0 @@ -# https://github.com/probot/settings - -branches: - - name: "main" - - # https://docs.github.com/en/rest/reference/repos#delete-branch-protection - # https://docs.github.com/en/rest/reference/repos#update-branch-protection - - protection: - enforce_admins: false - required_pull_request_reviews: - dismiss_stale_reviews: true - require_code_owner_reviews: true - required_approving_review_count: 1 - required_status_checks: - contexts: - - "Code Coverage (7.3, locked)" - - "Coding Standards (7.3, locked)" - - "Dependency Analysis (7.3, locked)" - - "Mutation Tests (7.3, locked)" - - "Static Code Analysis (7.3, locked)" - - "Tests (7.3, highest)" - - "Tests (7.3, locked)" - - "Tests (7.3, lowest)" - - "Tests (7.4, highest)" - - "Tests (7.4, locked)" - - "Tests (7.4, lowest)" - - "Tests (8.0, highest)" - - "Tests (8.0, locked)" - - "Tests (8.0, lowest)" - strict: false - restrictions: - - # https://docs.github.com/en/rest/reference/repos#list-branches--parameters - - # Note: User, app, and team restrictions are only available for organization-owned repositories. - # Set to null to disable when using this configuration for a repository on a personal account. - - apps: [] - teams: [] - users: - - "ergebnis-bot" - -# https://docs.github.com/en/rest/reference/issues#create-a-label -# https://docs.github.com/en/rest/reference/issues#update-a-label - -labels: - - name: "bug" - color: "ee0701" - description: "" - - - name: "dependency" - color: "0366d6" - description: "" - - - name: "enhancement" - color: "0e8a16" - description: "" - - - name: "merge" - color: "6f42c1" - description: "" - - - name: "question" - color: "cc317c" - description: "" - - - name: "security" - color: "ee0701" - description: "" - - - name: "stale" - color: "eeeeee" - description: "" - -# https://docs.github.com/en/rest/reference/repos#update-a-repository - -repository: - allow_merge_commit: true - allow_rebase_merge: false - allow_squash_merge: false - archived: false - default_branch: "main" - delete_branch_on_merge: true - description: ":octocat: + :ledger: Provides a GitHub repository template for a PHP library, using GitHub actions." - has_downloads: true - has_issues: true - has_pages: false - has_projects: false - has_wiki: false - name: "php-library-template" - private: false - - # https://docs.github.com/en/rest/reference/repos#replace-all-repository-topics - - topics: "php, library, template" diff --git a/yii-cloud-tasks/.github/workflows/integrate.yaml b/yii-cloud-tasks/.github/workflows/integrate.yaml deleted file mode 100644 index ca02a31..0000000 --- a/yii-cloud-tasks/.github/workflows/integrate.yaml +++ /dev/null @@ -1,426 +0,0 @@ -# https://docs.github.com/en/actions - -name: "Integrate" - -on: # yamllint disable-line rule:truthy - pull_request: null - push: - branches: - - "main" - -env: - PHP_EXTENSIONS: "mbstring" - -jobs: - coding-standards: - name: "Coding Standards" - - runs-on: "ubuntu-latest" - - strategy: - matrix: - php-version: - - "7.3" - - dependencies: - - "locked" - - steps: - - name: "Checkout" - uses: "actions/checkout@v2.3.4" - - - name: "Lint YAML files" - uses: "ibiqlik/action-yamllint@v3" - with: - config_file: ".yamllint.yaml" - file_or_dir: "." - strict: true - - - name: "Set up PHP" - uses: "shivammathur/setup-php@2.9.0" - with: - coverage: "none" - extensions: "${{ env.PHP_EXTENSIONS }}" - php-version: "${{ matrix.php-version }}" - - - name: "Validate composer.json and composer.lock" - run: "composer validate --strict" - - - name: "Determine composer cache directory" - uses: "./.github/actions/composer/composer/determine-cache-directory" - - - name: "Cache dependencies installed with composer" - uses: "actions/cache@v2.1.4" - with: - path: "${{ env.COMPOSER_CACHE_DIR }}" - key: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('composer.lock') }}" - restore-keys: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-" - - - name: "Install ${{ matrix.dependencies }} dependencies with composer" - uses: "./.github/actions/composer/composer/install" - with: - dependencies: "${{ matrix.dependencies }}" - - - name: "Run ergebnis/composer-normalize" - run: "composer normalize --dry-run" - - - name: "Create cache directory for friendsofphp/php-cs-fixer" - run: "mkdir -p .build/php-cs-fixer" - - - name: "Cache cache directory for friendsofphp/php-cs-fixer" - uses: "actions/cache@v2.1.4" - with: - path: ".build/php-cs-fixer" - key: "php-${{ matrix.php-version }}-php-cs-fixer-${{ github.sha }}" - restore-keys: "php-${{ matrix.php-version }}-php-cs-fixer-" - - - name: "Run friendsofphp/php-cs-fixer" - run: "vendor/bin/php-cs-fixer fix --config=.php_cs --diff --diff-format=udiff --dry-run --verbose" - - dependency-analysis: - name: "Dependency Analysis" - - runs-on: "ubuntu-latest" - - strategy: - matrix: - php-version: - - "7.3" - - dependencies: - - "locked" - - steps: - - name: "Checkout" - uses: "actions/checkout@v2.3.4" - - - name: "Set up PHP" - uses: "shivammathur/setup-php@2.9.0" - with: - coverage: "none" - extensions: "${{ env.PHP_EXTENSIONS }}" - php-version: "${{ matrix.php-version }}" - - - name: "Determine composer cache directory" - uses: "./.github/actions/composer/composer/determine-cache-directory" - - - name: "Cache dependencies installed with composer" - uses: "actions/cache@v2.1.4" - with: - path: "${{ env.COMPOSER_CACHE_DIR }}" - key: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('composer.lock') }}" - restore-keys: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-" - - - name: "Install ${{ matrix.dependencies }} dependencies with composer" - uses: "./.github/actions/composer/composer/install" - with: - dependencies: "${{ matrix.dependencies }}" - - - name: "Run maglnet/composer-require-checker" - run: ".phive/composer-require-checker check --config-file=$(pwd)/composer-require-checker.json" - - static-code-analysis: - name: "Static Code Analysis" - - runs-on: "ubuntu-latest" - - strategy: - matrix: - php-version: - - "7.3" - - dependencies: - - "locked" - - steps: - - name: "Checkout" - uses: "actions/checkout@v2.3.4" - - - name: "Set up PHP" - uses: "shivammathur/setup-php@2.9.0" - with: - coverage: "none" - extensions: "${{ env.PHP_EXTENSIONS }}" - php-version: "${{ matrix.php-version }}" - - - name: "Determine composer cache directory" - uses: "./.github/actions/composer/composer/determine-cache-directory" - - - name: "Cache dependencies installed with composer" - uses: "actions/cache@v2.1.4" - with: - path: "${{ env.COMPOSER_CACHE_DIR }}" - key: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('composer.lock') }}" - restore-keys: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-" - - - name: "Install ${{ matrix.dependencies }} dependencies with composer" - uses: "./.github/actions/composer/composer/install" - with: - dependencies: "${{ matrix.dependencies }}" - - - name: "Create cache directory for phpstan/phpstan" - run: "mkdir -p .build/phpstan" - - - name: "Cache cache directory for phpstan/phpstan" - uses: "actions/cache@v2.1.4" - with: - path: ".build/phpstan" - key: "php-${{ matrix.php-version }}-phpstan-${{ github.sha }}" - restore-keys: "php-${{ matrix.php-version }}-phpstan-" - - - name: "Run phpstan/phpstan" - run: "vendor/bin/phpstan analyse --configuration=phpstan.neon --memory-limit=-1" - - - name: "Create cache directory for vimeo/psalm" - run: "mkdir -p .build/psalm" - - - name: "Cache cache directory for vimeo/psalm" - uses: "actions/cache@v2.1.4" - with: - path: ".build/psalm" - key: "php-${{ matrix.php-version }}-psalm-${{ github.sha }}" - restore-keys: "php-${{ matrix.php-version }}-psalm-" - - - name: "Run vimeo/psalm" - run: "vendor/bin/psalm --config=psalm.xml --diff --shepherd --show-info=false --stats --threads=4" - - tests: - name: "Tests" - - runs-on: "ubuntu-latest" - - strategy: - matrix: - php-version: - - "7.3" - - "7.4" - - "8.0" - - dependencies: - - "lowest" - - "locked" - - "highest" - - steps: - - name: "Checkout" - uses: "actions/checkout@v2.3.4" - - - name: "Set up PHP" - uses: "shivammathur/setup-php@2.9.0" - with: - coverage: "none" - extensions: "${{ env.PHP_EXTENSIONS }}" - php-version: "${{ matrix.php-version }}" - - - name: "Set up problem matchers for phpunit/phpunit" - run: "echo \"::add-matcher::${{ runner.tool_cache }}/phpunit.json\"" - - - name: "Determine composer cache directory" - uses: "./.github/actions/composer/composer/determine-cache-directory" - - - name: "Cache dependencies installed with composer" - uses: "actions/cache@v2.1.4" - with: - path: "${{ env.COMPOSER_CACHE_DIR }}" - key: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('composer.lock') }}" - restore-keys: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-" - - - name: "Install ${{ matrix.dependencies }} dependencies with composer" - uses: "./.github/actions/composer/composer/install" - with: - dependencies: "${{ matrix.dependencies }}" - - - name: "Run auto-review tests with phpunit/phpunit" - run: "vendor/bin/phpunit --configuration=test/AutoReview/phpunit.xml" - - - name: "Run unit tests with phpunit/phpunit" - run: "vendor/bin/phpunit --configuration=test/Unit/phpunit.xml" - - - name: "Run integration tests with phpunit/phpunit" - run: "vendor/bin/phpunit --configuration=test/Integration/phpunit.xml" - - code-coverage: - name: "Code Coverage" - - runs-on: "ubuntu-latest" - - strategy: - matrix: - php-version: - - "7.3" - - dependencies: - - "locked" - - steps: - - name: "Checkout" - uses: "actions/checkout@v2.3.4" - - - name: "Set up PHP" - uses: "shivammathur/setup-php@2.9.0" - with: - coverage: "xdebug" - extensions: "${{ env.PHP_EXTENSIONS }}" - php-version: "${{ matrix.php-version }}" - - - name: "Set up problem matchers for phpunit/phpunit" - run: "echo \"::add-matcher::${{ runner.tool_cache }}/phpunit.json\"" - - - name: "Determine composer cache directory" - uses: "./.github/actions/composer/composer/determine-cache-directory" - - - name: "Cache dependencies installed with composer" - uses: "actions/cache@v2.1.4" - with: - path: "${{ env.COMPOSER_CACHE_DIR }}" - key: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('composer.lock') }}" - restore-keys: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-" - - - name: "Install ${{ matrix.dependencies }} dependencies with composer" - uses: "./.github/actions/composer/composer/install" - with: - dependencies: "${{ matrix.dependencies }}" - - - name: "Collect code coverage with Xdebug and phpunit/phpunit" - run: "vendor/bin/phpunit --configuration=test/Unit/phpunit.xml --coverage-clover=.build/phpunit/logs/clover.xml" - - - name: "Send code coverage report to Codecov.io" - env: - CODECOV_TOKEN: "${{ secrets.CODECOV_TOKEN }}" - run: "bash <(curl -s https://codecov.io/bash)" - - mutation-tests: - name: "Mutation Tests" - - runs-on: "ubuntu-latest" - - strategy: - matrix: - php-version: - - "7.3" - - dependencies: - - "locked" - - steps: - - name: "Checkout" - uses: "actions/checkout@v2.3.4" - - - name: "Set up PHP" - uses: "shivammathur/setup-php@2.9.0" - with: - coverage: "xdebug" - extensions: "${{ env.PHP_EXTENSIONS }}" - php-version: "${{ matrix.php-version }}" - - - name: "Determine composer cache directory" - uses: "./.github/actions/composer/composer/determine-cache-directory" - - - name: "Cache dependencies installed with composer" - uses: "actions/cache@v2.1.4" - with: - path: "${{ env.COMPOSER_CACHE_DIR }}" - key: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('composer.lock') }}" - restore-keys: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-" - - - name: "Install ${{ matrix.dependencies }} dependencies with composer" - uses: "./.github/actions/composer/composer/install" - with: - dependencies: "${{ matrix.dependencies }}" - - - name: "Run mutation tests with Xdebug and infection/infection" - run: "vendor/bin/infection --configuration=infection.json" - - merge: - name: "Merge" - - runs-on: "ubuntu-latest" - - needs: - - "code-coverage" - - "coding-standards" - - "dependency-analysis" - - "mutation-tests" - - "static-code-analysis" - - "tests" - - if: > - github.event_name == 'pull_request' && - github.event.pull_request.draft == false && ( - github.event.action == 'opened' || - github.event.action == 'reopened' || - github.event.action == 'synchronize' - ) && ( - (github.actor == 'dependabot[bot]' && startsWith(github.event.pull_request.title, 'composer(deps-dev)')) || - (github.actor == 'dependabot[bot]' && startsWith(github.event.pull_request.title, 'github-actions(deps)')) || - (github.actor == 'localheinz' && contains(github.event.pull_request.labels.*.name, 'merge')) - ) - - steps: - - name: "Request review from @ergebnis-bot" - uses: "actions/github-script@v3.1" - with: - github-token: "${{ secrets.GITHUB_TOKEN }}" - script: | - const pullRequest = context.payload.pull_request - const repository = context.repo - - const reviewers = [ - "ergebnis-bot", - ] - - await github.pulls.requestReviewers({ - owner: repository.owner, - pull_number: pullRequest.number, - repo: repository.repo, - reviewers: reviewers, - }) - - - name: "Assign @ergebnis-bot" - uses: "actions/github-script@v3.1" - with: - github-token: "${{ secrets.GITHUB_TOKEN }}" - script: | - const pullRequest = context.payload.pull_request - const repository = context.repo - - const assignees = [ - "ergebnis-bot", - ] - - await github.issues.addAssignees({ - assignees: assignees, - issue_number: pullRequest.number, - owner: repository.owner, - repo: repository.repo, - }) - - - name: "Approve pull request" - uses: "actions/github-script@v3.1" - with: - github-token: "${{ secrets.GITHUB_TOKEN }}" - script: | - const pullRequest = context.payload.pull_request - const repository = context.repo - - await github.pulls.createReview({ - event: "APPROVE", - owner: repository.owner, - pull_number: pullRequest.number, - repo: repository.repo, - }) - - - name: "Merge pull request" - uses: "actions/github-script@v3.1" - with: - github-token: "${{ secrets.GITHUB_TOKEN }}" - script: | - const pullRequest = context.payload.pull_request - const repository = context.repo - - await github.pulls.merge({ - merge_method: "merge", - owner: repository.owner, - pull_number: pullRequest.number, - repo: repository.repo, - }) diff --git a/yii-cloud-tasks/.github/workflows/prune.yaml b/yii-cloud-tasks/.github/workflows/prune.yaml deleted file mode 100644 index 1fb1921..0000000 --- a/yii-cloud-tasks/.github/workflows/prune.yaml +++ /dev/null @@ -1,35 +0,0 @@ -# https://docs.github.com/en/actions - -name: "Prune" - -on: # yamllint disable-line rule:truthy - schedule: - - cron: "0 12 * * *" - -env: - DAYS_BEFORE_CLOSE: 14 - DAYS_BEFORE_STALE: 180 - -jobs: - prune: - name: "Issues" - - runs-on: "ubuntu-latest" - - steps: - - name: "Prune issues and pull requests" - uses: "actions/stale@v3.0.16" - with: - days-before-close: "${{ env.DAYS_BEFORE_CLOSE }}" - days-before-stale: "${{ env.DAYS_BEFORE_STALE }}" - repo-token: "${{ secrets.GITHUB_TOKEN }}" - stale-issue-label: "stale" - stale-issue-message: | - Since this issue has not had any activity within the last ${{ env.DAYS_BEFORE_STALE }} days, I have marked it as stale. - - I will close it if no further activity occurs within the next ${{ env.DAYS_BEFORE_CLOSE }} days. - stale-pr-label: "stale" - stale-pr-message: | - Since this pull request has not had any activity within the last ${{ env.DAYS_BEFORE_STALE }} days, I have marked it as stale. - - I will close it if no further activity occurs within the next ${{ env.DAYS_BEFORE_CLOSE }} days. diff --git a/yii-cloud-tasks/.github/workflows/release.yaml b/yii-cloud-tasks/.github/workflows/release.yaml deleted file mode 100644 index 42b97ca..0000000 --- a/yii-cloud-tasks/.github/workflows/release.yaml +++ /dev/null @@ -1,29 +0,0 @@ -# https://docs.github.com/en/actions - -name: "Release" - -on: # yamllint disable-line rule:truthy - push: - tags: - - "**" - -jobs: - release: - name: "Release" - - runs-on: "ubuntu-latest" - - steps: - - name: "Determine tag" - id: "determine-tag" - run: "echo \"::set-output name=tag::${GITHUB_REF#refs/tags/}\"" - - - name: "Create release" - uses: "actions/create-release@v1.1.4" - env: - GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" - with: - draft: false - prerelease: false - release_name: "${{ steps.determine-tag.outputs.tag }}" - tag_name: "${{ steps.determine-tag.outputs.tag }}" diff --git a/yii-cloud-tasks/.github/workflows/renew.yaml b/yii-cloud-tasks/.github/workflows/renew.yaml deleted file mode 100644 index 9b11ab6..0000000 --- a/yii-cloud-tasks/.github/workflows/renew.yaml +++ /dev/null @@ -1,76 +0,0 @@ -# https://docs.github.com/en/actions - -name: "Renew" - -on: # yamllint disable-line rule:truthy - schedule: - - cron: "0 0 1 1 *" - -env: - PHP_EXTENSIONS: "mbstring" - -jobs: - license: - name: "License" - - runs-on: "ubuntu-latest" - - strategy: - matrix: - php-version: - - "7.3" - - dependencies: - - "locked" - - steps: - - name: "Checkout" - uses: "actions/checkout@v2.3.4" - with: - token: "${{ secrets.GITHUB_TOKEN }}" - - - name: "Set up PHP" - uses: "shivammathur/setup-php@2.9.0" - with: - coverage: "none" - extensions: "${{ env.PHP_EXTENSIONS }}" - php-version: "${{ matrix.php-version }}" - - - name: "Validate composer.json and composer.lock" - run: "composer validate --strict" - - - name: "Determine composer cache directory" - uses: "./.github/actions/composer/composer/determine-cache-directory" - - - name: "Cache dependencies installed with composer" - uses: "actions/cache@v2.1.4" - with: - path: "${{ env.COMPOSER_CACHE_DIR }}" - key: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('composer.lock') }}" - restore-keys: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-" - - - name: "Install ${{ matrix.dependencies }} dependencies with composer" - uses: "./.github/actions/composer/composer/install" - with: - dependencies: "${{ matrix.dependencies }}" - - - name: "Create cache directory for friendsofphp/php-cs-fixer" - run: "mkdir -p .build/php-cs-fixer" - - - name: "Cache cache directory for friendsofphp/php-cs-fixer" - uses: "actions/cache@v2.1.4" - with: - path: ".build/php-cs-fixer" - key: "php-${{ matrix.php-version }}-php-cs-fixer-${{ github.sha }}" - restore-keys: "php-${{ matrix.php-version }}-php-cs-fixer-" - - - name: "Run friendsofphp/php-cs-fixer" - run: "vendor/bin/php-cs-fixer fix --config=.php_cs --diff --diff-format=udiff --verbose" - - - name: "Commit modified files" - uses: "stefanzweifel/git-auto-commit-action@v4.8.0" - with: - commit_author: "ergebnis-bot " - commit_message: "Enhancement: Update license year" - commit_user_email: "bot@ergebn.is" - commit_user_name: "ergebnis-bot" diff --git a/yii-cloud-tasks/.gitignore b/yii-cloud-tasks/.gitignore deleted file mode 100644 index 0d234cb..0000000 --- a/yii-cloud-tasks/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -/.build/ -/.notes/ -/vendor/ diff --git a/yii-cloud-tasks/.gitpod.Dockerfile b/yii-cloud-tasks/.gitpod.Dockerfile deleted file mode 100644 index f8e49f2..0000000 --- a/yii-cloud-tasks/.gitpod.Dockerfile +++ /dev/null @@ -1,7 +0,0 @@ -FROM gitpod/workspace-full - -# Install custom tools, runtimes, etc. -# For example "bastet", a command-line tetris clone: -# RUN brew install bastet -# -# More information: https://www.gitpod.io/docs/config-docker/ diff --git a/yii-cloud-tasks/.gitpod.yml b/yii-cloud-tasks/.gitpod.yml deleted file mode 100644 index d048366..0000000 --- a/yii-cloud-tasks/.gitpod.yml +++ /dev/null @@ -1,5 +0,0 @@ -image: - file: ".gitpod.Dockerfile" - -tasks: - - init: "make" diff --git a/yii-cloud-tasks/.phive/composer-require-checker b/yii-cloud-tasks/.phive/composer-require-checker deleted file mode 100644 index 5b51398..0000000 Binary files a/yii-cloud-tasks/.phive/composer-require-checker and /dev/null differ diff --git a/yii-cloud-tasks/.phive/phars.xml b/yii-cloud-tasks/.phive/phars.xml deleted file mode 100644 index b7a4630..0000000 --- a/yii-cloud-tasks/.phive/phars.xml +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/yii-cloud-tasks/.yamllint.yaml b/yii-cloud-tasks/.yamllint.yaml deleted file mode 100644 index b2129ac..0000000 --- a/yii-cloud-tasks/.yamllint.yaml +++ /dev/null @@ -1,66 +0,0 @@ -extends: "default" - -ignore: | - .build/ - .notes/ - vendor/ - -rules: - braces: - max-spaces-inside-empty: 0 - max-spaces-inside: 1 - min-spaces-inside-empty: 0 - min-spaces-inside: 1 - brackets: - max-spaces-inside-empty: 0 - max-spaces-inside: 0 - min-spaces-inside-empty: 0 - min-spaces-inside: 0 - colons: - max-spaces-after: 1 - max-spaces-before: 0 - commas: - max-spaces-after: 1 - max-spaces-before: 0 - min-spaces-after: 1 - comments: - ignore-shebangs: true - min-spaces-from-content: 1 - require-starting-space: true - comments-indentation: "enable" - document-end: - present: false - document-start: - present: false - indentation: - check-multi-line-strings: false - indent-sequences: true - spaces: 2 - empty-lines: - max-end: 0 - max-start: 0 - max: 1 - empty-values: - forbid-in-block-mappings: true - forbid-in-flow-mappings: true - hyphens: - max-spaces-after: 2 - key-duplicates: "enable" - key-ordering: "disable" - line-length: "disable" - new-line-at-end-of-file: "enable" - new-lines: - type: "unix" - octal-values: - forbid-implicit-octal: true - quoted-strings: - quote-type: "double" - trailing-spaces: "enable" - truthy: - allowed-values: - - "false" - - "true" - -yaml-files: - - "*.yaml" - - "*.yml" diff --git a/yii-cloud-tasks/Integration/phpunit.xml b/yii-cloud-tasks/Integration/phpunit.xml deleted file mode 100644 index 2de1186..0000000 --- a/yii-cloud-tasks/Integration/phpunit.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - . - - - diff --git a/yii-cloud-tasks/LICENSE.md b/yii-cloud-tasks/LICENSE.md deleted file mode 100644 index 959aeed..0000000 --- a/yii-cloud-tasks/LICENSE.md +++ /dev/null @@ -1,15 +0,0 @@ -# The MIT License (MIT) - -Copyright (c) 2017-2021 Inquid -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated -documentation files (the _Software_), to deal in the Software without restriction, including without limitation the -rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit -persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the -Software. - -THE SOFTWARE IS PROVIDED **AS IS**, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE -WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/yii-cloud-tasks/Makefile b/yii-cloud-tasks/Makefile deleted file mode 100644 index 9e7ae56..0000000 --- a/yii-cloud-tasks/Makefile +++ /dev/null @@ -1,53 +0,0 @@ -.PHONY: it -it: coding-standards static-code-analysis tests ## Runs the coding-standards, static-code-analysis, and tests targets - -.PHONY: code-coverage -code-coverage: vendor ## Collects coverage from running unit tests with phpunit/phpunit - mkdir -p .build/phpunit - vendor/bin/phpunit --configuration=test/Unit/phpunit.xml --coverage-text - -.PHONY: coding-standards -coding-standards: vendor ## Normalizes composer.json with ergebnis/composer-normalize, lints YAML files with yamllint and fixes code style issues with friendsofphp/php-cs-fixer - composer normalize - yamllint -c .yamllint.yaml --strict . - mkdir -p .build/php-cs-fixer - vendor/bin/php-cs-fixer fix --config=.php_cs --diff --diff-format=udiff --verbose - -.PHONY: dependency-analysis -dependency-analysis: vendor ## Runs a dependency analysis with maglnet/composer-require-checker - .phive/composer-require-checker check --config-file=$(shell pwd)/composer-require-checker.json - -.PHONY: help -help: ## Displays this list of targets with descriptions - @grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[32m%-30s\033[0m %s\n", $$1, $$2}' - -.PHONY: mutation-tests -mutation-tests: vendor ## Runs mutation tests with infection/infection - mkdir -p .build/infection - vendor/bin/infection --configuration=infection.json - -.PHONY: static-code-analysis -static-code-analysis: vendor ## Runs a static code analysis with phpstan/phpstan and vimeo/psalm - mkdir -p .build/phpstan - vendor/bin/phpstan analyse --configuration=phpstan.neon --memory-limit=-1 - mkdir -p .build/psalm - vendor/bin/psalm --config=psalm.xml --diff --show-info=false --stats --threads=4 - -.PHONY: static-code-analysis-baseline -static-code-analysis-baseline: vendor ## Generates a baseline for static code analysis with phpstan/phpstan and vimeo/psalm - mkdir -p .build/phpstan - echo '' > phpstan-baseline.neon - vendor/bin/phpstan analyze --configuration=phpstan.neon --error-format=baselineNeon --memory-limit=-1 > phpstan-baseline.neon || true - mkdir -p .build/psalm - vendor/bin/psalm --config=psalm.xml --set-baseline=psalm-baseline.xml - -.PHONY: tests -tests: vendor ## Runs auto-review, unit, and integration tests with phpunit/phpunit - mkdir -p .build/phpunit - vendor/bin/phpunit --configuration=test/AutoReview/phpunit.xml - vendor/bin/phpunit --configuration=test/Unit/phpunit.xml - vendor/bin/phpunit --configuration=test/Integration/phpunit.xml - -vendor: composer.json composer.lock - composer validate --strict - composer install --no-interaction --no-progress diff --git a/yii-cloud-tasks/Unit/phpunit.xml b/yii-cloud-tasks/Unit/phpunit.xml deleted file mode 100644 index b8e3b73..0000000 --- a/yii-cloud-tasks/Unit/phpunit.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - ../../src/ - - - - - . - - - diff --git a/yii-cloud-tasks/composer-require-checker.json b/yii-cloud-tasks/composer-require-checker.json deleted file mode 100644 index 67d0aa1..0000000 --- a/yii-cloud-tasks/composer-require-checker.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "symbol-whitelist": [ - "array", - "bool", - "callable", - "false", - "float", - "int", - "iterable", - "null", - "object", - "parent", - "self", - "static", - "string", - "true", - "void" - ] -} diff --git a/yii-cloud-tasks/infection.json b/yii-cloud-tasks/infection.json deleted file mode 100644 index 98476cb..0000000 --- a/yii-cloud-tasks/infection.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "ignoreMsiWithNoMutations": true, - "logs": { - "text": ".build/infection/infection-log.txt" - }, - "minCoveredMsi": 100, - "minMsi": 100, - "phpUnit": { - "configDir": "test\/Unit" - }, - "source": { - "directories": [ - "src" - ] - }, - "timeout": 10 -} diff --git a/yii-cloud-tasks/phpstan-baseline.neon b/yii-cloud-tasks/phpstan-baseline.neon deleted file mode 100644 index 846a8df..0000000 --- a/yii-cloud-tasks/phpstan-baseline.neon +++ /dev/null @@ -1,3 +0,0 @@ -parameters: - ignoreErrors: [] - diff --git a/yii-cloud-tasks/phpstan.neon b/yii-cloud-tasks/phpstan.neon deleted file mode 100644 index 05cde7f..0000000 --- a/yii-cloud-tasks/phpstan.neon +++ /dev/null @@ -1,15 +0,0 @@ -includes: - - phpstan-baseline.neon - -parameters: - checkMissingIterableValueType: false - - inferPrivatePropertyTypeFromConstructor: true - - level: max - - paths: - - src/ - - test/ - - tmpDir: .build/phpstan/ diff --git a/yii-cloud-tasks/psalm-baseline.xml b/yii-cloud-tasks/psalm-baseline.xml deleted file mode 100644 index 2c0de9d..0000000 --- a/yii-cloud-tasks/psalm-baseline.xml +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/yii-cloud-tasks/psalm.xml b/yii-cloud-tasks/psalm.xml deleted file mode 100644 index 12df516..0000000 --- a/yii-cloud-tasks/psalm.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - - - - - diff --git a/yii-cloud-tasks/test/AutoReview/phpunit.xml b/yii-cloud-tasks/test/AutoReview/phpunit.xml deleted file mode 100644 index 4f5220f..0000000 --- a/yii-cloud-tasks/test/AutoReview/phpunit.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - . - - - diff --git a/yii-farmbot/.editorconfig b/yii-farmbot/.editorconfig deleted file mode 100644 index 3aaad72..0000000 --- a/yii-farmbot/.editorconfig +++ /dev/null @@ -1,20 +0,0 @@ -root = true - -[*] -charset = utf-8 -indent_size = 4 -indent_style = space -insert_final_newline = true -trim_trailing_whitespace = true - -[*.json] -indent_size = 2 - -[*.neon] -indent_style = tab - -[*.{yaml,yml}] -indent_size = 2 - -[Makefile] -indent_style = tab diff --git a/yii-farmbot/.gitattributes b/yii-farmbot/.gitattributes deleted file mode 100644 index 4ce803a..0000000 --- a/yii-farmbot/.gitattributes +++ /dev/null @@ -1,14 +0,0 @@ -/.github/ export-ignore -/.phive/ export-ignore -/test/ export-ignore -/.editorconfig export-ignore -/.gitattributes export-ignore -/.gitignore export-ignore -/.php_cs export-ignore -/composer-require-checker.json export-ignore -/infection.json export-ignore -/Makefile export-ignore -/phpstan-baseline.neon export-ignore -/phpstan.neon export-ignore -/psalm-baseline.xml export-ignore -/psalm.xml export-ignore diff --git a/yii-farmbot/.github/CODEOWNERS b/yii-farmbot/.github/CODEOWNERS deleted file mode 100644 index 756e6a1..0000000 --- a/yii-farmbot/.github/CODEOWNERS +++ /dev/null @@ -1 +0,0 @@ -* @inquid @gogl92 diff --git a/yii-farmbot/.github/CODE_OF_CONDUCT.md b/yii-farmbot/.github/CODE_OF_CONDUCT.md deleted file mode 100644 index d9159b2..0000000 --- a/yii-farmbot/.github/CODE_OF_CONDUCT.md +++ /dev/null @@ -1,46 +0,0 @@ -# Contributor Covenant Code of Conduct - -## Our Pledge - -In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation. - -## Our Standards - -Examples of behavior that contributes to creating a positive environment include: - -* Using welcoming and inclusive language -* Being respectful of differing viewpoints and experiences -* Gracefully accepting constructive criticism -* Focusing on what is best for the community -* Showing empathy towards other community members - -Examples of unacceptable behavior by participants include: - -* The use of sexualized language or imagery and unwelcome sexual attention or advances -* Trolling, insulting/derogatory comments, and personal or political attacks -* Public or private harassment -* Publishing others' private information, such as a physical or electronic address, without explicit permission -* Other conduct which could reasonably be considered inappropriate in a professional setting - -## Our Responsibilities - -Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior. - -Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful. - -## Scope - -This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers. - -## Enforcement - -Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at am@localheinz.com. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately. - -Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership. - -## Attribution - -This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version] - -[homepage]: http://contributor-covenant.org -[version]: http://contributor-covenant.org/version/1/4/ diff --git a/yii-farmbot/.github/CONTRIBUTING.md b/yii-farmbot/.github/CONTRIBUTING.md deleted file mode 100644 index d0d33d0..0000000 --- a/yii-farmbot/.github/CONTRIBUTING.md +++ /dev/null @@ -1,115 +0,0 @@ -# CONTRIBUTING - -We are using [GitHub Actions](https://github.com/features/actions) as a continuous integration system. - -For details, take a look at the following workflow configuration files: - -- [`workflows/integrate.yaml`](workflows/integrate.yaml) -- [`workflows/prune.yaml`](workflows/prune.yaml) -- [`workflows/release.yaml`](workflows/release.yaml) -- [`workflows/renew.yaml`](workflows/renew.yaml) -- [`workflows/triage.yaml`](workflows/triage.yaml) - -## Coding Standards - -We are using [`ergebnis/composer-normalize`](https://github.com/ergebnis/composer-normalize) to normalize `composer.json`. - -We are using [`yamllint`](https://github.com/adrienverge/yamllint) to enforce coding standards in YAML files. - -If you do not have `yamllint` installed yet, run - -```sh -$ brew install yamllint -``` - -to install `yamllint`. - -We are using [`friendsofphp/php-cs-fixer`](https://github.com/FriendsOfPHP/PHP-CS-Fixer) to enforce coding standards in PHP files. - -Run - -```sh -$ make coding-standards -``` - -to automatically fix coding standard violations. - -## Dependency Analysis - -We are using [`maglnet/composer-require-checker`](https://github.com/maglnet/ComposerRequireChecker) to prevent the use of unknown symbols in production code. - -Run - -```sh -$ make dependency-analysis -``` - -to run a dependency analysis. - -## Static Code Analysis - -We are using [`phpstan/phpstan`](https://github.com/phpstan/phpstan) and [`vimeo/psalm`](https://github.com/vimeo/psalm) to statically analyze the code. - -Run - -```sh -$ make static-code-analysis -``` - -to run a static code analysis. - -We are also using the baseline features of [`phpstan/phpstan`](https://medium.com/@ondrejmirtes/phpstans-baseline-feature-lets-you-hold-new-code-to-a-higher-standard-e77d815a5dff) and [`vimeo/psalm`](https://psalm.dev/docs/running_psalm/dealing_with_code_issues/#using-a-baseline-file). - -Run - -```sh -$ make static-code-analysis-baseline -``` - -to regenerate the baselines in [`../phpstan-baseline.neon`](../phpstan-baseline.neon) and [`../psalm-baseline.xml`](../psalm-baseline.xml). - -:exclamation: Ideally, the baselines should shrink over time. - -## Tests - -We are using [`phpunit/phpunit`](https://github.com/sebastianbergmann/phpunit) to drive the development. - -Run - -```sh -$ make tests -``` - -to run all the tests. - -## Mutation Tests - -We are using [`infection/infection`](https://github.com/infection/infection) to ensure a minimum quality of the tests. - -Enable `pcov` or `Xdebug` and run - -```sh -$ make mutation-tests -``` - -to run mutation tests. - -## Extra lazy? - -Run - -```sh -$ make -``` - -to enforce coding standards, run a static code analysis, and run tests! - -## Help - -:bulb: Run - -```sh -$ make help -``` - -to display a list of available targets with corresponding descriptions. diff --git a/yii-farmbot/.github/FUNDING.yml b/yii-farmbot/.github/FUNDING.yml deleted file mode 100644 index fcd77fe..0000000 --- a/yii-farmbot/.github/FUNDING.yml +++ /dev/null @@ -1,5 +0,0 @@ -custom: - - "https://inquid.dev" - - "https://www.buymeacoffee.com/inquid" - - "https://ko-fi.com/inquid" -github: "inquid" diff --git a/yii-farmbot/.github/ISSUE_TEMPLATE.md b/yii-farmbot/.github/ISSUE_TEMPLATE.md deleted file mode 100644 index 1788742..0000000 --- a/yii-farmbot/.github/ISSUE_TEMPLATE.md +++ /dev/null @@ -1,13 +0,0 @@ -#### Steps required to reproduce the problem - -1. -2. -3. - -#### Expected Result - -* - -#### Actual Result - -* diff --git a/yii-farmbot/.github/PULL_REQUEST_TEMPLATE.md b/yii-farmbot/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 4392909..0000000 --- a/yii-farmbot/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,7 +0,0 @@ -This pull request - -* [x] - -Follows #. -Related to #. -Fixes #. diff --git a/yii-farmbot/.github/actions/composer/composer/determine-cache-directory/action.yaml b/yii-farmbot/.github/actions/composer/composer/determine-cache-directory/action.yaml deleted file mode 100644 index 4842e88..0000000 --- a/yii-farmbot/.github/actions/composer/composer/determine-cache-directory/action.yaml +++ /dev/null @@ -1,16 +0,0 @@ -# https://docs.github.com/en/actions/creating-actions/creating-a-composite-run-steps-action -# https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#inputs -# https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#runs-for-composite-run-steps-actions -# https://getcomposer.org/doc/03-cli.md#composer-cache-dir - -name: "Determine composer cache directory" - -description: "Determines the composer cache directory and exports it as COMPOSER_CACHE_DIR environment variable" - -runs: - using: "composite" - - steps: - - name: "Determine composer cache directory" - shell: "bash" - run: "echo \"COMPOSER_CACHE_DIR=$(composer config cache-dir)\" >> $GITHUB_ENV" diff --git a/yii-farmbot/.github/actions/composer/composer/install/action.yaml b/yii-farmbot/.github/actions/composer/composer/install/action.yaml deleted file mode 100644 index bab262e..0000000 --- a/yii-farmbot/.github/actions/composer/composer/install/action.yaml +++ /dev/null @@ -1,22 +0,0 @@ -# https://docs.github.com/en/actions/creating-actions/creating-a-composite-run-steps-action -# https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#inputs -# https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#runs-for-composite-run-steps-actions - -name: "Install dependencies with composer" - -description: "Installs dependencies with composer" - -inputs: - dependencies: - description: "Which dependencies to install, one of \"lowest\", \"locked\", \"highest\"" - required: true - -runs: - using: "composite" - - steps: - - name: "Install ${{ inputs.dependencies }} dependencies with composer" - shell: "bash" - run: "${{ github.action_path }}/run.sh" - env: - COMPOSER_INSTALL_DEPENDENCIES: "${{ inputs.dependencies }}" diff --git a/yii-farmbot/.github/actions/composer/composer/install/run.sh b/yii-farmbot/.github/actions/composer/composer/install/run.sh deleted file mode 100644 index a052ba6..0000000 --- a/yii-farmbot/.github/actions/composer/composer/install/run.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/usr/bin/env bash - -dependencies="${COMPOSER_INSTALL_DEPENDENCIES}" - -if [[ ${dependencies} == "lowest" ]]; then - composer update --no-interaction --no-progress --prefer-lowest - - exit $? -fi - -if [[ ${dependencies} == "locked" ]]; then - composer install --no-interaction --no-progress - - exit $? -fi - -if [[ ${dependencies} == "highest" ]]; then - composer update --no-interaction --no-progress - - exit $? -fi - -echo "::error::The value for the \"dependencies\" input needs to be one of \"lowest\", \"locked\"', \"highest\"' - got \"${dependencies}\" instead." - -exit 1 diff --git a/yii-farmbot/.github/dependabot.yaml b/yii-farmbot/.github/dependabot.yaml deleted file mode 100644 index eb22ef0..0000000 --- a/yii-farmbot/.github/dependabot.yaml +++ /dev/null @@ -1,27 +0,0 @@ -# https://docs.github.com/en/github/administering-a-repository/configuration-options-for-dependency-updates - -version: 2 - -updates: - - commit-message: - include: "scope" - prefix: "composer" - directory: "/" - labels: - - "dependency" - open-pull-requests-limit: 10 - package-ecosystem: "composer" - schedule: - interval: "daily" - versioning-strategy: "increase" - - - commit-message: - include: "scope" - prefix: "github-actions" - directory: "/" - labels: - - "dependency" - open-pull-requests-limit: 10 - package-ecosystem: "github-actions" - schedule: - interval: "daily" diff --git a/yii-farmbot/.github/settings.yml b/yii-farmbot/.github/settings.yml deleted file mode 100644 index 86eed49..0000000 --- a/yii-farmbot/.github/settings.yml +++ /dev/null @@ -1,96 +0,0 @@ -# https://github.com/probot/settings - -branches: - - name: "main" - - # https://docs.github.com/en/rest/reference/repos#delete-branch-protection - # https://docs.github.com/en/rest/reference/repos#update-branch-protection - - protection: - enforce_admins: false - required_pull_request_reviews: - dismiss_stale_reviews: true - require_code_owner_reviews: true - required_approving_review_count: 1 - required_status_checks: - contexts: - - "Code Coverage (7.3, locked)" - - "Coding Standards (7.3, locked)" - - "Dependency Analysis (7.3, locked)" - - "Mutation Tests (7.3, locked)" - - "Static Code Analysis (7.3, locked)" - - "Tests (7.3, highest)" - - "Tests (7.3, locked)" - - "Tests (7.3, lowest)" - - "Tests (7.4, highest)" - - "Tests (7.4, locked)" - - "Tests (7.4, lowest)" - - "Tests (8.0, highest)" - - "Tests (8.0, locked)" - - "Tests (8.0, lowest)" - strict: false - restrictions: - - # https://docs.github.com/en/rest/reference/repos#list-branches--parameters - - # Note: User, app, and team restrictions are only available for organization-owned repositories. - # Set to null to disable when using this configuration for a repository on a personal account. - - apps: [] - teams: [] - users: - - "ergebnis-bot" - -# https://docs.github.com/en/rest/reference/issues#create-a-label -# https://docs.github.com/en/rest/reference/issues#update-a-label - -labels: - - name: "bug" - color: "ee0701" - description: "" - - - name: "dependency" - color: "0366d6" - description: "" - - - name: "enhancement" - color: "0e8a16" - description: "" - - - name: "merge" - color: "6f42c1" - description: "" - - - name: "question" - color: "cc317c" - description: "" - - - name: "security" - color: "ee0701" - description: "" - - - name: "stale" - color: "eeeeee" - description: "" - -# https://docs.github.com/en/rest/reference/repos#update-a-repository - -repository: - allow_merge_commit: true - allow_rebase_merge: false - allow_squash_merge: false - archived: false - default_branch: "main" - delete_branch_on_merge: true - description: ":octocat: + :ledger: Provides a GitHub repository template for a PHP library, using GitHub actions." - has_downloads: true - has_issues: true - has_pages: false - has_projects: false - has_wiki: false - name: "php-library-template" - private: false - - # https://docs.github.com/en/rest/reference/repos#replace-all-repository-topics - - topics: "php, library, template" diff --git a/yii-farmbot/.github/workflows/integrate.yaml b/yii-farmbot/.github/workflows/integrate.yaml deleted file mode 100644 index ca02a31..0000000 --- a/yii-farmbot/.github/workflows/integrate.yaml +++ /dev/null @@ -1,426 +0,0 @@ -# https://docs.github.com/en/actions - -name: "Integrate" - -on: # yamllint disable-line rule:truthy - pull_request: null - push: - branches: - - "main" - -env: - PHP_EXTENSIONS: "mbstring" - -jobs: - coding-standards: - name: "Coding Standards" - - runs-on: "ubuntu-latest" - - strategy: - matrix: - php-version: - - "7.3" - - dependencies: - - "locked" - - steps: - - name: "Checkout" - uses: "actions/checkout@v2.3.4" - - - name: "Lint YAML files" - uses: "ibiqlik/action-yamllint@v3" - with: - config_file: ".yamllint.yaml" - file_or_dir: "." - strict: true - - - name: "Set up PHP" - uses: "shivammathur/setup-php@2.9.0" - with: - coverage: "none" - extensions: "${{ env.PHP_EXTENSIONS }}" - php-version: "${{ matrix.php-version }}" - - - name: "Validate composer.json and composer.lock" - run: "composer validate --strict" - - - name: "Determine composer cache directory" - uses: "./.github/actions/composer/composer/determine-cache-directory" - - - name: "Cache dependencies installed with composer" - uses: "actions/cache@v2.1.4" - with: - path: "${{ env.COMPOSER_CACHE_DIR }}" - key: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('composer.lock') }}" - restore-keys: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-" - - - name: "Install ${{ matrix.dependencies }} dependencies with composer" - uses: "./.github/actions/composer/composer/install" - with: - dependencies: "${{ matrix.dependencies }}" - - - name: "Run ergebnis/composer-normalize" - run: "composer normalize --dry-run" - - - name: "Create cache directory for friendsofphp/php-cs-fixer" - run: "mkdir -p .build/php-cs-fixer" - - - name: "Cache cache directory for friendsofphp/php-cs-fixer" - uses: "actions/cache@v2.1.4" - with: - path: ".build/php-cs-fixer" - key: "php-${{ matrix.php-version }}-php-cs-fixer-${{ github.sha }}" - restore-keys: "php-${{ matrix.php-version }}-php-cs-fixer-" - - - name: "Run friendsofphp/php-cs-fixer" - run: "vendor/bin/php-cs-fixer fix --config=.php_cs --diff --diff-format=udiff --dry-run --verbose" - - dependency-analysis: - name: "Dependency Analysis" - - runs-on: "ubuntu-latest" - - strategy: - matrix: - php-version: - - "7.3" - - dependencies: - - "locked" - - steps: - - name: "Checkout" - uses: "actions/checkout@v2.3.4" - - - name: "Set up PHP" - uses: "shivammathur/setup-php@2.9.0" - with: - coverage: "none" - extensions: "${{ env.PHP_EXTENSIONS }}" - php-version: "${{ matrix.php-version }}" - - - name: "Determine composer cache directory" - uses: "./.github/actions/composer/composer/determine-cache-directory" - - - name: "Cache dependencies installed with composer" - uses: "actions/cache@v2.1.4" - with: - path: "${{ env.COMPOSER_CACHE_DIR }}" - key: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('composer.lock') }}" - restore-keys: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-" - - - name: "Install ${{ matrix.dependencies }} dependencies with composer" - uses: "./.github/actions/composer/composer/install" - with: - dependencies: "${{ matrix.dependencies }}" - - - name: "Run maglnet/composer-require-checker" - run: ".phive/composer-require-checker check --config-file=$(pwd)/composer-require-checker.json" - - static-code-analysis: - name: "Static Code Analysis" - - runs-on: "ubuntu-latest" - - strategy: - matrix: - php-version: - - "7.3" - - dependencies: - - "locked" - - steps: - - name: "Checkout" - uses: "actions/checkout@v2.3.4" - - - name: "Set up PHP" - uses: "shivammathur/setup-php@2.9.0" - with: - coverage: "none" - extensions: "${{ env.PHP_EXTENSIONS }}" - php-version: "${{ matrix.php-version }}" - - - name: "Determine composer cache directory" - uses: "./.github/actions/composer/composer/determine-cache-directory" - - - name: "Cache dependencies installed with composer" - uses: "actions/cache@v2.1.4" - with: - path: "${{ env.COMPOSER_CACHE_DIR }}" - key: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('composer.lock') }}" - restore-keys: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-" - - - name: "Install ${{ matrix.dependencies }} dependencies with composer" - uses: "./.github/actions/composer/composer/install" - with: - dependencies: "${{ matrix.dependencies }}" - - - name: "Create cache directory for phpstan/phpstan" - run: "mkdir -p .build/phpstan" - - - name: "Cache cache directory for phpstan/phpstan" - uses: "actions/cache@v2.1.4" - with: - path: ".build/phpstan" - key: "php-${{ matrix.php-version }}-phpstan-${{ github.sha }}" - restore-keys: "php-${{ matrix.php-version }}-phpstan-" - - - name: "Run phpstan/phpstan" - run: "vendor/bin/phpstan analyse --configuration=phpstan.neon --memory-limit=-1" - - - name: "Create cache directory for vimeo/psalm" - run: "mkdir -p .build/psalm" - - - name: "Cache cache directory for vimeo/psalm" - uses: "actions/cache@v2.1.4" - with: - path: ".build/psalm" - key: "php-${{ matrix.php-version }}-psalm-${{ github.sha }}" - restore-keys: "php-${{ matrix.php-version }}-psalm-" - - - name: "Run vimeo/psalm" - run: "vendor/bin/psalm --config=psalm.xml --diff --shepherd --show-info=false --stats --threads=4" - - tests: - name: "Tests" - - runs-on: "ubuntu-latest" - - strategy: - matrix: - php-version: - - "7.3" - - "7.4" - - "8.0" - - dependencies: - - "lowest" - - "locked" - - "highest" - - steps: - - name: "Checkout" - uses: "actions/checkout@v2.3.4" - - - name: "Set up PHP" - uses: "shivammathur/setup-php@2.9.0" - with: - coverage: "none" - extensions: "${{ env.PHP_EXTENSIONS }}" - php-version: "${{ matrix.php-version }}" - - - name: "Set up problem matchers for phpunit/phpunit" - run: "echo \"::add-matcher::${{ runner.tool_cache }}/phpunit.json\"" - - - name: "Determine composer cache directory" - uses: "./.github/actions/composer/composer/determine-cache-directory" - - - name: "Cache dependencies installed with composer" - uses: "actions/cache@v2.1.4" - with: - path: "${{ env.COMPOSER_CACHE_DIR }}" - key: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('composer.lock') }}" - restore-keys: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-" - - - name: "Install ${{ matrix.dependencies }} dependencies with composer" - uses: "./.github/actions/composer/composer/install" - with: - dependencies: "${{ matrix.dependencies }}" - - - name: "Run auto-review tests with phpunit/phpunit" - run: "vendor/bin/phpunit --configuration=test/AutoReview/phpunit.xml" - - - name: "Run unit tests with phpunit/phpunit" - run: "vendor/bin/phpunit --configuration=test/Unit/phpunit.xml" - - - name: "Run integration tests with phpunit/phpunit" - run: "vendor/bin/phpunit --configuration=test/Integration/phpunit.xml" - - code-coverage: - name: "Code Coverage" - - runs-on: "ubuntu-latest" - - strategy: - matrix: - php-version: - - "7.3" - - dependencies: - - "locked" - - steps: - - name: "Checkout" - uses: "actions/checkout@v2.3.4" - - - name: "Set up PHP" - uses: "shivammathur/setup-php@2.9.0" - with: - coverage: "xdebug" - extensions: "${{ env.PHP_EXTENSIONS }}" - php-version: "${{ matrix.php-version }}" - - - name: "Set up problem matchers for phpunit/phpunit" - run: "echo \"::add-matcher::${{ runner.tool_cache }}/phpunit.json\"" - - - name: "Determine composer cache directory" - uses: "./.github/actions/composer/composer/determine-cache-directory" - - - name: "Cache dependencies installed with composer" - uses: "actions/cache@v2.1.4" - with: - path: "${{ env.COMPOSER_CACHE_DIR }}" - key: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('composer.lock') }}" - restore-keys: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-" - - - name: "Install ${{ matrix.dependencies }} dependencies with composer" - uses: "./.github/actions/composer/composer/install" - with: - dependencies: "${{ matrix.dependencies }}" - - - name: "Collect code coverage with Xdebug and phpunit/phpunit" - run: "vendor/bin/phpunit --configuration=test/Unit/phpunit.xml --coverage-clover=.build/phpunit/logs/clover.xml" - - - name: "Send code coverage report to Codecov.io" - env: - CODECOV_TOKEN: "${{ secrets.CODECOV_TOKEN }}" - run: "bash <(curl -s https://codecov.io/bash)" - - mutation-tests: - name: "Mutation Tests" - - runs-on: "ubuntu-latest" - - strategy: - matrix: - php-version: - - "7.3" - - dependencies: - - "locked" - - steps: - - name: "Checkout" - uses: "actions/checkout@v2.3.4" - - - name: "Set up PHP" - uses: "shivammathur/setup-php@2.9.0" - with: - coverage: "xdebug" - extensions: "${{ env.PHP_EXTENSIONS }}" - php-version: "${{ matrix.php-version }}" - - - name: "Determine composer cache directory" - uses: "./.github/actions/composer/composer/determine-cache-directory" - - - name: "Cache dependencies installed with composer" - uses: "actions/cache@v2.1.4" - with: - path: "${{ env.COMPOSER_CACHE_DIR }}" - key: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('composer.lock') }}" - restore-keys: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-" - - - name: "Install ${{ matrix.dependencies }} dependencies with composer" - uses: "./.github/actions/composer/composer/install" - with: - dependencies: "${{ matrix.dependencies }}" - - - name: "Run mutation tests with Xdebug and infection/infection" - run: "vendor/bin/infection --configuration=infection.json" - - merge: - name: "Merge" - - runs-on: "ubuntu-latest" - - needs: - - "code-coverage" - - "coding-standards" - - "dependency-analysis" - - "mutation-tests" - - "static-code-analysis" - - "tests" - - if: > - github.event_name == 'pull_request' && - github.event.pull_request.draft == false && ( - github.event.action == 'opened' || - github.event.action == 'reopened' || - github.event.action == 'synchronize' - ) && ( - (github.actor == 'dependabot[bot]' && startsWith(github.event.pull_request.title, 'composer(deps-dev)')) || - (github.actor == 'dependabot[bot]' && startsWith(github.event.pull_request.title, 'github-actions(deps)')) || - (github.actor == 'localheinz' && contains(github.event.pull_request.labels.*.name, 'merge')) - ) - - steps: - - name: "Request review from @ergebnis-bot" - uses: "actions/github-script@v3.1" - with: - github-token: "${{ secrets.GITHUB_TOKEN }}" - script: | - const pullRequest = context.payload.pull_request - const repository = context.repo - - const reviewers = [ - "ergebnis-bot", - ] - - await github.pulls.requestReviewers({ - owner: repository.owner, - pull_number: pullRequest.number, - repo: repository.repo, - reviewers: reviewers, - }) - - - name: "Assign @ergebnis-bot" - uses: "actions/github-script@v3.1" - with: - github-token: "${{ secrets.GITHUB_TOKEN }}" - script: | - const pullRequest = context.payload.pull_request - const repository = context.repo - - const assignees = [ - "ergebnis-bot", - ] - - await github.issues.addAssignees({ - assignees: assignees, - issue_number: pullRequest.number, - owner: repository.owner, - repo: repository.repo, - }) - - - name: "Approve pull request" - uses: "actions/github-script@v3.1" - with: - github-token: "${{ secrets.GITHUB_TOKEN }}" - script: | - const pullRequest = context.payload.pull_request - const repository = context.repo - - await github.pulls.createReview({ - event: "APPROVE", - owner: repository.owner, - pull_number: pullRequest.number, - repo: repository.repo, - }) - - - name: "Merge pull request" - uses: "actions/github-script@v3.1" - with: - github-token: "${{ secrets.GITHUB_TOKEN }}" - script: | - const pullRequest = context.payload.pull_request - const repository = context.repo - - await github.pulls.merge({ - merge_method: "merge", - owner: repository.owner, - pull_number: pullRequest.number, - repo: repository.repo, - }) diff --git a/yii-farmbot/.github/workflows/prune.yaml b/yii-farmbot/.github/workflows/prune.yaml deleted file mode 100644 index 1fb1921..0000000 --- a/yii-farmbot/.github/workflows/prune.yaml +++ /dev/null @@ -1,35 +0,0 @@ -# https://docs.github.com/en/actions - -name: "Prune" - -on: # yamllint disable-line rule:truthy - schedule: - - cron: "0 12 * * *" - -env: - DAYS_BEFORE_CLOSE: 14 - DAYS_BEFORE_STALE: 180 - -jobs: - prune: - name: "Issues" - - runs-on: "ubuntu-latest" - - steps: - - name: "Prune issues and pull requests" - uses: "actions/stale@v3.0.16" - with: - days-before-close: "${{ env.DAYS_BEFORE_CLOSE }}" - days-before-stale: "${{ env.DAYS_BEFORE_STALE }}" - repo-token: "${{ secrets.GITHUB_TOKEN }}" - stale-issue-label: "stale" - stale-issue-message: | - Since this issue has not had any activity within the last ${{ env.DAYS_BEFORE_STALE }} days, I have marked it as stale. - - I will close it if no further activity occurs within the next ${{ env.DAYS_BEFORE_CLOSE }} days. - stale-pr-label: "stale" - stale-pr-message: | - Since this pull request has not had any activity within the last ${{ env.DAYS_BEFORE_STALE }} days, I have marked it as stale. - - I will close it if no further activity occurs within the next ${{ env.DAYS_BEFORE_CLOSE }} days. diff --git a/yii-farmbot/.github/workflows/release.yaml b/yii-farmbot/.github/workflows/release.yaml deleted file mode 100644 index 42b97ca..0000000 --- a/yii-farmbot/.github/workflows/release.yaml +++ /dev/null @@ -1,29 +0,0 @@ -# https://docs.github.com/en/actions - -name: "Release" - -on: # yamllint disable-line rule:truthy - push: - tags: - - "**" - -jobs: - release: - name: "Release" - - runs-on: "ubuntu-latest" - - steps: - - name: "Determine tag" - id: "determine-tag" - run: "echo \"::set-output name=tag::${GITHUB_REF#refs/tags/}\"" - - - name: "Create release" - uses: "actions/create-release@v1.1.4" - env: - GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" - with: - draft: false - prerelease: false - release_name: "${{ steps.determine-tag.outputs.tag }}" - tag_name: "${{ steps.determine-tag.outputs.tag }}" diff --git a/yii-farmbot/.github/workflows/renew.yaml b/yii-farmbot/.github/workflows/renew.yaml deleted file mode 100644 index 9b11ab6..0000000 --- a/yii-farmbot/.github/workflows/renew.yaml +++ /dev/null @@ -1,76 +0,0 @@ -# https://docs.github.com/en/actions - -name: "Renew" - -on: # yamllint disable-line rule:truthy - schedule: - - cron: "0 0 1 1 *" - -env: - PHP_EXTENSIONS: "mbstring" - -jobs: - license: - name: "License" - - runs-on: "ubuntu-latest" - - strategy: - matrix: - php-version: - - "7.3" - - dependencies: - - "locked" - - steps: - - name: "Checkout" - uses: "actions/checkout@v2.3.4" - with: - token: "${{ secrets.GITHUB_TOKEN }}" - - - name: "Set up PHP" - uses: "shivammathur/setup-php@2.9.0" - with: - coverage: "none" - extensions: "${{ env.PHP_EXTENSIONS }}" - php-version: "${{ matrix.php-version }}" - - - name: "Validate composer.json and composer.lock" - run: "composer validate --strict" - - - name: "Determine composer cache directory" - uses: "./.github/actions/composer/composer/determine-cache-directory" - - - name: "Cache dependencies installed with composer" - uses: "actions/cache@v2.1.4" - with: - path: "${{ env.COMPOSER_CACHE_DIR }}" - key: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('composer.lock') }}" - restore-keys: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-" - - - name: "Install ${{ matrix.dependencies }} dependencies with composer" - uses: "./.github/actions/composer/composer/install" - with: - dependencies: "${{ matrix.dependencies }}" - - - name: "Create cache directory for friendsofphp/php-cs-fixer" - run: "mkdir -p .build/php-cs-fixer" - - - name: "Cache cache directory for friendsofphp/php-cs-fixer" - uses: "actions/cache@v2.1.4" - with: - path: ".build/php-cs-fixer" - key: "php-${{ matrix.php-version }}-php-cs-fixer-${{ github.sha }}" - restore-keys: "php-${{ matrix.php-version }}-php-cs-fixer-" - - - name: "Run friendsofphp/php-cs-fixer" - run: "vendor/bin/php-cs-fixer fix --config=.php_cs --diff --diff-format=udiff --verbose" - - - name: "Commit modified files" - uses: "stefanzweifel/git-auto-commit-action@v4.8.0" - with: - commit_author: "ergebnis-bot " - commit_message: "Enhancement: Update license year" - commit_user_email: "bot@ergebn.is" - commit_user_name: "ergebnis-bot" diff --git a/yii-farmbot/.gitignore b/yii-farmbot/.gitignore deleted file mode 100644 index 0d234cb..0000000 --- a/yii-farmbot/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -/.build/ -/.notes/ -/vendor/ diff --git a/yii-farmbot/.gitpod.Dockerfile b/yii-farmbot/.gitpod.Dockerfile deleted file mode 100644 index f8e49f2..0000000 --- a/yii-farmbot/.gitpod.Dockerfile +++ /dev/null @@ -1,7 +0,0 @@ -FROM gitpod/workspace-full - -# Install custom tools, runtimes, etc. -# For example "bastet", a command-line tetris clone: -# RUN brew install bastet -# -# More information: https://www.gitpod.io/docs/config-docker/ diff --git a/yii-farmbot/.gitpod.yml b/yii-farmbot/.gitpod.yml deleted file mode 100644 index d048366..0000000 --- a/yii-farmbot/.gitpod.yml +++ /dev/null @@ -1,5 +0,0 @@ -image: - file: ".gitpod.Dockerfile" - -tasks: - - init: "make" diff --git a/yii-farmbot/.phive/composer-require-checker b/yii-farmbot/.phive/composer-require-checker deleted file mode 100644 index 5b51398..0000000 Binary files a/yii-farmbot/.phive/composer-require-checker and /dev/null differ diff --git a/yii-farmbot/.phive/phars.xml b/yii-farmbot/.phive/phars.xml deleted file mode 100644 index b7a4630..0000000 --- a/yii-farmbot/.phive/phars.xml +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/yii-farmbot/.php_cs b/yii-farmbot/.php_cs deleted file mode 100644 index bce5832..0000000 --- a/yii-farmbot/.php_cs +++ /dev/null @@ -1,43 +0,0 @@ -save(); - -$config = PhpCsFixer\Config\Factory::fromRuleSet(new PhpCsFixer\Config\RuleSet\Php73($license->header())); - -$config->getFinder() - ->exclude([ - '.build/', - '.github/', - '.notes/', - ]) - ->ignoreDotFiles(false) - ->in(__DIR__) - ->name('.php_cs'); - -$config->setCacheFile(__DIR__ . '/.build/php-cs-fixer/.php_cs.cache'); - -return $config; diff --git a/yii-farmbot/.yamllint.yaml b/yii-farmbot/.yamllint.yaml deleted file mode 100644 index b2129ac..0000000 --- a/yii-farmbot/.yamllint.yaml +++ /dev/null @@ -1,66 +0,0 @@ -extends: "default" - -ignore: | - .build/ - .notes/ - vendor/ - -rules: - braces: - max-spaces-inside-empty: 0 - max-spaces-inside: 1 - min-spaces-inside-empty: 0 - min-spaces-inside: 1 - brackets: - max-spaces-inside-empty: 0 - max-spaces-inside: 0 - min-spaces-inside-empty: 0 - min-spaces-inside: 0 - colons: - max-spaces-after: 1 - max-spaces-before: 0 - commas: - max-spaces-after: 1 - max-spaces-before: 0 - min-spaces-after: 1 - comments: - ignore-shebangs: true - min-spaces-from-content: 1 - require-starting-space: true - comments-indentation: "enable" - document-end: - present: false - document-start: - present: false - indentation: - check-multi-line-strings: false - indent-sequences: true - spaces: 2 - empty-lines: - max-end: 0 - max-start: 0 - max: 1 - empty-values: - forbid-in-block-mappings: true - forbid-in-flow-mappings: true - hyphens: - max-spaces-after: 2 - key-duplicates: "enable" - key-ordering: "disable" - line-length: "disable" - new-line-at-end-of-file: "enable" - new-lines: - type: "unix" - octal-values: - forbid-implicit-octal: true - quoted-strings: - quote-type: "double" - trailing-spaces: "enable" - truthy: - allowed-values: - - "false" - - "true" - -yaml-files: - - "*.yaml" - - "*.yml" diff --git a/yii-farmbot/CHANGELOG.md b/yii-farmbot/CHANGELOG.md deleted file mode 100644 index ca0388e..0000000 --- a/yii-farmbot/CHANGELOG.md +++ /dev/null @@ -1,11 +0,0 @@ -# Changelog - -All notable changes to this project will be documented in this file. - -The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). - -## Unreleased - -For a full diff see [`1902cc3...main`][1902cc3...main]. - -[1902cc3...main]: https://github.com/inquid/yii-farmbot/compare/1902cc3...main diff --git a/yii-farmbot/Integration/phpunit.xml b/yii-farmbot/Integration/phpunit.xml deleted file mode 100644 index 2de1186..0000000 --- a/yii-farmbot/Integration/phpunit.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - . - - - diff --git a/yii-farmbot/LICENSE.md b/yii-farmbot/LICENSE.md deleted file mode 100644 index b28738c..0000000 --- a/yii-farmbot/LICENSE.md +++ /dev/null @@ -1,15 +0,0 @@ -# The BSD-2-Clause License (BSD-2-Clause) - -Copyright (c) 2017-2021 Inquid -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated -documentation files (the _Software_), to deal in the Software without restriction, including without limitation the -rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit -persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the -Software. - -THE SOFTWARE IS PROVIDED **AS IS**, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE -WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/yii-farmbot/Makefile b/yii-farmbot/Makefile deleted file mode 100644 index 9e7ae56..0000000 --- a/yii-farmbot/Makefile +++ /dev/null @@ -1,53 +0,0 @@ -.PHONY: it -it: coding-standards static-code-analysis tests ## Runs the coding-standards, static-code-analysis, and tests targets - -.PHONY: code-coverage -code-coverage: vendor ## Collects coverage from running unit tests with phpunit/phpunit - mkdir -p .build/phpunit - vendor/bin/phpunit --configuration=test/Unit/phpunit.xml --coverage-text - -.PHONY: coding-standards -coding-standards: vendor ## Normalizes composer.json with ergebnis/composer-normalize, lints YAML files with yamllint and fixes code style issues with friendsofphp/php-cs-fixer - composer normalize - yamllint -c .yamllint.yaml --strict . - mkdir -p .build/php-cs-fixer - vendor/bin/php-cs-fixer fix --config=.php_cs --diff --diff-format=udiff --verbose - -.PHONY: dependency-analysis -dependency-analysis: vendor ## Runs a dependency analysis with maglnet/composer-require-checker - .phive/composer-require-checker check --config-file=$(shell pwd)/composer-require-checker.json - -.PHONY: help -help: ## Displays this list of targets with descriptions - @grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[32m%-30s\033[0m %s\n", $$1, $$2}' - -.PHONY: mutation-tests -mutation-tests: vendor ## Runs mutation tests with infection/infection - mkdir -p .build/infection - vendor/bin/infection --configuration=infection.json - -.PHONY: static-code-analysis -static-code-analysis: vendor ## Runs a static code analysis with phpstan/phpstan and vimeo/psalm - mkdir -p .build/phpstan - vendor/bin/phpstan analyse --configuration=phpstan.neon --memory-limit=-1 - mkdir -p .build/psalm - vendor/bin/psalm --config=psalm.xml --diff --show-info=false --stats --threads=4 - -.PHONY: static-code-analysis-baseline -static-code-analysis-baseline: vendor ## Generates a baseline for static code analysis with phpstan/phpstan and vimeo/psalm - mkdir -p .build/phpstan - echo '' > phpstan-baseline.neon - vendor/bin/phpstan analyze --configuration=phpstan.neon --error-format=baselineNeon --memory-limit=-1 > phpstan-baseline.neon || true - mkdir -p .build/psalm - vendor/bin/psalm --config=psalm.xml --set-baseline=psalm-baseline.xml - -.PHONY: tests -tests: vendor ## Runs auto-review, unit, and integration tests with phpunit/phpunit - mkdir -p .build/phpunit - vendor/bin/phpunit --configuration=test/AutoReview/phpunit.xml - vendor/bin/phpunit --configuration=test/Unit/phpunit.xml - vendor/bin/phpunit --configuration=test/Integration/phpunit.xml - -vendor: composer.json composer.lock - composer validate --strict - composer install --no-interaction --no-progress diff --git a/yii-farmbot/README.md b/yii-farmbot/README.md deleted file mode 100644 index 1655435..0000000 --- a/yii-farmbot/README.md +++ /dev/null @@ -1,50 +0,0 @@ -[![Gitpod ready-to-code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/inquid/yii-farmbot) - -# inquid-library-template - -[![Integrate](https://github.com/inquid/yii-farmbot/workflows/Integrate/badge.svg)](https://github.com/inquid/yii-farmbot/actions) -[![Prune](https://github.com/inquid/yii-farmbot/workflows/Prune/badge.svg)](https://github.com/inquid/yii-farmbot/actions) -[![Release](https://github.com/inquid/yii-farmbot/workflows/Release/badge.svg)](https://github.com/inquid/yii-farmbot/actions) -[![Renew](https://github.com/inquid/yii-farmbot/workflows/Renew/badge.svg)](https://github.com/inquid/yii-farmbot/actions) - -[![Code Coverage](https://codecov.io/gh/inquid/yii-farmbot/branch/main/graph/badge.svg)](https://codecov.io/gh/inquid/yii-farmbot) -[![Type Coverage](https://shepherd.dev/github/inquid/yii-farmbot/coverage.svg)](https://shepherd.dev/github/inquid/yii-farmbot) - -[![Latest Stable Version](https://poser.pugx.org/inquid/yii-farmbot/v/stable)](https://packagist.org/packages/inquid/yii-farmbot) -[![Total Downloads](https://poser.pugx.org/inquid/yii-farmbot/downloads)](https://packagist.org/packages/inquid/yii-farmbot) - -## Installation - -:bulb: This is a great place for showing how to install the package, see below: - -Run - -```sh -$ composer require inquid/yii-farmbot -``` - -## Usage - -:bulb: This is a great place for showing a few usage examples! - -## Changelog - -Please have a look at [`CHANGELOG.md`](CHANGELOG.md). - -## Contributing - -Please have a look at [`CONTRIBUTING.md`](.github/CONTRIBUTING.md). - -## Code of Conduct - -Please have a look at [`CODE_OF_CONDUCT.md`](.github/CODE_OF_CONDUCT.md). - -## License - -This package is licensed using the MIT License. - -Please have a look at [`LICENSE.md`](LICENSE.md). - -## Curious what I am building? - -:mailbox_with_mail: [Subscribe to my list](https://localheinz.com/projects/), and I will occasionally send you an email to let you know what I am working on. diff --git a/yii-farmbot/Unit/ExampleTest.php b/yii-farmbot/Unit/ExampleTest.php deleted file mode 100644 index c9460e0..0000000 --- a/yii-farmbot/Unit/ExampleTest.php +++ /dev/null @@ -1,37 +0,0 @@ -sentence; - - $example = Example::fromName($name); - - self::assertSame($name, $example->name()); - } -} diff --git a/yii-farmbot/Unit/phpunit.xml b/yii-farmbot/Unit/phpunit.xml deleted file mode 100644 index b8e3b73..0000000 --- a/yii-farmbot/Unit/phpunit.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - ../../src/ - - - - - . - - - diff --git a/yii-farmbot/composer-require-checker.json b/yii-farmbot/composer-require-checker.json deleted file mode 100644 index 67d0aa1..0000000 --- a/yii-farmbot/composer-require-checker.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "symbol-whitelist": [ - "array", - "bool", - "callable", - "false", - "float", - "int", - "iterable", - "null", - "object", - "parent", - "self", - "static", - "string", - "true", - "void" - ] -} diff --git a/yii-farmbot/composer.json b/yii-farmbot/composer.json deleted file mode 100644 index c8512c0..0000000 --- a/yii-farmbot/composer.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "name": "inquid/yii-farmbot", - "type": "yii2-extension", - "description": "This extension creates plants", - "homepage": "https://github.com/inquid/yii-farmbot", - "license": "BSD-2-Clause", - "authors": [ - { - "name": "Andreas Möller", - "email": "am@localheinz.com" - }, - { - "name": "Inquid", - "email": "contact@inquid.co" - }, - { - "name": "Farmbot LLC", - "email": "farmbot@farm.bot" - } - ], - "require": { - "php": "^7.3 || ^8.0" - }, - "require-dev": { - "ergebnis/composer-normalize": "^2.13.2", - "ergebnis/license": "^1.1.0", - "ergebnis/php-cs-fixer-config": "~2.13.0", - "ergebnis/phpstan-rules": "~0.15.3", - "ergebnis/test-util": "^1.4.0", - "infection/infection": "~0.18.2", - "phpstan/extension-installer": "^1.1.0", - "phpstan/phpstan": "~0.12.75", - "phpstan/phpstan-deprecation-rules": "~0.12.6", - "phpstan/phpstan-phpunit": "~0.12.17", - "phpstan/phpstan-strict-rules": "~0.12.9", - "phpunit/phpunit": "~9.2.6", - "psalm/plugin-phpunit": "~0.15.1", - "vimeo/psalm": "^4.5.1" - }, - "config": { - "platform": { - "php": "7.3.24" - }, - "preferred-install": "dist", - "sort-packages": true - }, - "extra": { - "composer-normalize": { - "indent-size": 2, - "indent-style": "space" - } - }, - "autoload": { - "psr-4": { - "Inquid\\Farmbot\\": "src/" - } - }, - "autoload-dev": { - "psr-4": { - "Inquid\\Farmbot\\Test\\": "test/" - } - }, - "support": { - "issues": "https://github.com/inquid/yii-farmbot/issues", - "source": "https://github.com/inquid/yii-farmbot" - } -} diff --git a/yii-farmbot/infection.json b/yii-farmbot/infection.json deleted file mode 100644 index 98476cb..0000000 --- a/yii-farmbot/infection.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "ignoreMsiWithNoMutations": true, - "logs": { - "text": ".build/infection/infection-log.txt" - }, - "minCoveredMsi": 100, - "minMsi": 100, - "phpUnit": { - "configDir": "test\/Unit" - }, - "source": { - "directories": [ - "src" - ] - }, - "timeout": 10 -} diff --git a/yii-farmbot/phpstan-baseline.neon b/yii-farmbot/phpstan-baseline.neon deleted file mode 100644 index 846a8df..0000000 --- a/yii-farmbot/phpstan-baseline.neon +++ /dev/null @@ -1,3 +0,0 @@ -parameters: - ignoreErrors: [] - diff --git a/yii-farmbot/phpstan.neon b/yii-farmbot/phpstan.neon deleted file mode 100644 index 05cde7f..0000000 --- a/yii-farmbot/phpstan.neon +++ /dev/null @@ -1,15 +0,0 @@ -includes: - - phpstan-baseline.neon - -parameters: - checkMissingIterableValueType: false - - inferPrivatePropertyTypeFromConstructor: true - - level: max - - paths: - - src/ - - test/ - - tmpDir: .build/phpstan/ diff --git a/yii-farmbot/psalm-baseline.xml b/yii-farmbot/psalm-baseline.xml deleted file mode 100644 index 2c0de9d..0000000 --- a/yii-farmbot/psalm-baseline.xml +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/yii-farmbot/psalm.xml b/yii-farmbot/psalm.xml deleted file mode 100644 index 12df516..0000000 --- a/yii-farmbot/psalm.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - - - - - diff --git a/yii-farmbot/src/Example.php b/yii-farmbot/src/Example.php deleted file mode 100644 index b9aefae..0000000 --- a/yii-farmbot/src/Example.php +++ /dev/null @@ -1,34 +0,0 @@ -name = $name; - } - - public static function fromName(string $name): self - { - return new self($name); - } - - public function name(): string - { - return $this->name; - } -} diff --git a/yii-farmbot/test/AutoReview/SrcCodeTest.php b/yii-farmbot/test/AutoReview/SrcCodeTest.php deleted file mode 100644 index 78030a1..0000000 --- a/yii-farmbot/test/AutoReview/SrcCodeTest.php +++ /dev/null @@ -1,36 +0,0 @@ - - - - . - - -