Skip to content

Commit 6f30dcb

Browse files
authored
[TASK] Drop the PHIVE-installed development tools (#832)
It has turned out that our current set of PHIVE-installed development tools for the V8.x maintenance branch is no longer installable due to issues with the GPG keys used for signing the PHARs. As the maintenance branch has very little activity anyway now, relying on PHP linting and the unit tests should suffice, saving us the hassle with PHIVE on that branch. (We're still keeping some `.gitignore` entries related to the tools to make switching branches easier.) Closes #831 Closes #830
1 parent 6f37a7a commit 6f30dcb

File tree

7 files changed

+0
-171
lines changed

7 files changed

+0
-171
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -73,55 +73,3 @@ jobs:
7373
7474
- name: Run Tests
7575
run: ./vendor/bin/phpunit
76-
77-
static-analysis:
78-
name: Static Analysis
79-
80-
runs-on: ubuntu-22.04
81-
82-
needs: [ php-lint ]
83-
84-
strategy:
85-
fail-fast: false
86-
matrix:
87-
include:
88-
- command: sniffer
89-
php-version: '7.4'
90-
- command: fixer
91-
php-version: '7.4'
92-
- command: stan
93-
php-version: '7.4'
94-
95-
steps:
96-
- name: Checkout
97-
uses: actions/checkout@v4
98-
99-
- name: Install PHP
100-
uses: shivammathur/setup-php@v2
101-
with:
102-
php-version: ${{ matrix.php-version }}
103-
tools: "composer:v2, phive"
104-
coverage: none
105-
106-
- name: Show the Composer configuration
107-
run: composer config --global --list
108-
109-
- name: Cache dependencies installed with composer
110-
uses: actions/cache@v4
111-
with:
112-
path: ~/.cache/composer
113-
key: php${{ matrix.php-version }}-composer-${{ hashFiles('**/composer.json') }}
114-
restore-keys: |
115-
php${{ matrix.php-version }}-composer-
116-
117-
- name: Install Composer dependencies
118-
run: |
119-
composer update --with-dependencies --no-progress;
120-
composer show;
121-
122-
- name: Install development tools
123-
run: |
124-
phive --no-progress install --trust-gpg-keys 0FDE18AE1D09E19F60F6B1CBC00543248C87FB13,BBAB5DF0A0D6672989CF1869E82B2FB314E9906E,689DAD778FF08760E046228BA978220305CD5C32,CA7C2C7A30C8E8E1274A847651C67305FFC2E5C0
125-
126-
- name: Run Command
127-
run: composer ci:php:${{ matrix.command }}

.phive/phars.xml

Lines changed: 0 additions & 7 deletions
This file was deleted.

composer.json

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -46,36 +46,5 @@
4646
"branch-alias": {
4747
"dev-main": "9.0.x-dev"
4848
}
49-
},
50-
"scripts": {
51-
"ci": [
52-
"@ci:static"
53-
],
54-
"ci:php:fixer": "@php ./.phive/php-cs-fixer.phar --config=config/php-cs-fixer.php fix --dry-run -v --show-progress=dots bin src tests",
55-
"ci:php:sniffer": "@php ./.phive/phpcs.phar --standard=config/phpcs.xml bin src tests",
56-
"ci:php:stan": "@php ./.phive/phpstan.phar --configuration=config/phpstan.neon",
57-
"ci:static": [
58-
"@ci:php:fixer",
59-
"@ci:php:sniffer",
60-
"@ci:php:stan"
61-
],
62-
"fix:php": [
63-
"@fix:php:fixer",
64-
"@fix:php:sniffer"
65-
],
66-
"fix:php:fixer": "@php ./.phive/php-cs-fixer.phar --config=config/php-cs-fixer.php fix bin src tests",
67-
"fix:php:sniffer": "@php ./.phive/phpcbf.phar --standard=config/phpcs.xml bin src tests",
68-
"phpstan:baseline": "@php ./.phive/phpstan.phar --configuration=config/phpstan.neon --generate-baseline=config/phpstan-baseline.neon"
69-
},
70-
"scripts-descriptions": {
71-
"ci": "Runs all dynamic and static code checks (i.e. currently, only the static checks).",
72-
"ci:php:fixer": "Checks the code style with PHP CS Fixer.",
73-
"ci:php:sniffer": "Checks the code style with PHP_CodeSniffer.",
74-
"ci:php:stan": "Checks the types with PHPStan.",
75-
"ci:static": "Runs all static code analysis checks for the code.",
76-
"fix:php": "Autofixes all autofixable issues in the PHP code.",
77-
"fix:php:fixer": "Fixes autofixable issues found by PHP CS Fixer.",
78-
"fix:php:sniffer": "Fixes autofixable issues found by PHP_CodeSniffer.",
79-
"phpstand:baseline": "Updates the PHPStan baseline file to match the code."
8049
}
8150
}

config/php-cs-fixer.php

Lines changed: 0 additions & 34 deletions
This file was deleted.

config/phpcs.xml

Lines changed: 0 additions & 17 deletions
This file was deleted.

config/phpstan-baseline.neon

Lines changed: 0 additions & 12 deletions
This file was deleted.

config/phpstan.neon

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)