Skip to content

Commit

Permalink
Update vendor-bin dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
icanhazstring committed Nov 30, 2023
1 parent d7fbe66 commit eda44aa
Show file tree
Hide file tree
Showing 6 changed files with 698 additions and 423 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release-phar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
php-version: "${{ matrix.php-version }}"

- name: "Remove dev dependencies"
run: "composer install --no-progress"
run: "composer update --no-progress"

- name: "Fetch latest version tag"
run: "echo `git describe --abbrev=0 --tags` > .version"
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/validate-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
extensions: ds

- name: Install dependencies
run: composer install --no-progress --prefer-dist --optimize-autoloader
run: composer update --no-progress --prefer-dist --optimize-autoloader

- name: Check codestyle
run: vendor/bin/phpcs -s
Expand All @@ -52,7 +52,7 @@ jobs:
extensions: ds

- name: Install dependencies
run: composer install --no-progress --prefer-dist --optimize-autoloader
run: composer update --no-progress --prefer-dist --optimize-autoloader

- name: Analyze code with static-analysis
run: vendor/bin/phpstan --no-progress
Expand All @@ -64,7 +64,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [ "7.4", "8.0", "8.1", 8.2 ]
php: [ "7.4", "8.0", "8.1", "8.2" ]
os: [ "ubuntu-latest" ]
experimental: [ false ]
include:
Expand Down Expand Up @@ -112,7 +112,7 @@ jobs:
extensions: ds

- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest
run: composer update --prefer-dist --no-progress --no-suggest

- name: Check unused dependencies
run: bin/composer-unused --excludeDir=data
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/validate-phar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
php-version: "${{ matrix.php-version }}"

- name: "Remove dev dependencies"
run: "composer install --no-progress"
run: "composer update --no-progress"

- name: "Fetch latest version tag"
run: "echo `git describe --abbrev=0 --tags` > .version"
Expand Down
11 changes: 9 additions & 2 deletions composer-unused.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,18 @@
use Webmozart\Glob\Glob;

return static function (Configuration $config): Configuration {
return $config
// ->addNamedFilter(NamedFilter::fromString('symfony/config'))
$config
// ->addNamedFilter(NamedFilter::fromString('symfony/property-access'))
// ->addPatternFilter(PatternFilter::fromString('/symfony\/.*/'))
->setAdditionalFilesFor('icanhazstring/composer-unused', [
__FILE__,
...Glob::glob(__DIR__ . '/config/*.php'),
]);

// symfony/serializer with php8.1 installs a version that is no longer suggesting property-access
if (PHP_VERSION_ID >= 80100) {
$config->addNamedFilter(NamedFilter::fromString('symfony/property-access'));
}

return $config;
};
Loading

0 comments on commit eda44aa

Please sign in to comment.