Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 0 additions & 23 deletions .github/workflows/bare_run.yaml

This file was deleted.

96 changes: 0 additions & 96 deletions .github/workflows/downgraded_release.yaml

This file was deleted.

61 changes: 61 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: Tests

on:
pull_request: null
push:
branches:
- main

jobs:
tests:
strategy:
fail-fast: false
matrix:
php-version: ['7.4', '8.2', '8.5']

name: PHP ${{ matrix.php-version }}
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v5

- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
coverage: none

# analysis tools require PHP 8.2+ and are irrelevant to the test run;
# drop them so the low-PHP jobs install a clean, 7.4-compatible dependency set
- run: composer remove --dev --no-update tracy/tracy symplify/easy-coding-standard phpstan/phpstan phpstan/extension-installer symplify/phpstan-rules rector/rector rector/swiss-knife tomasvotruba/class-leak shipmonk/composer-dependency-analyser

- run: composer update --no-progress --prefer-stable

- name: Tests
run: vendor/bin/phpunit

- name: Smoke run CLI app
run: bin/jack list

lint:
strategy:
fail-fast: false
matrix:
php-version: ['7.4', '8.5']

name: PHP Linter ${{ matrix.php-version }}
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v5

- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
coverage: none

# analysis tools require PHP 8.2+; drop them so the 7.4 job installs a clean dependency set
- run: composer remove --dev --no-update tracy/tracy symplify/easy-coding-standard phpstan/phpstan phpstan/extension-installer symplify/phpstan-rules rector/rector rector/swiss-knife tomasvotruba/class-leak shipmonk/composer-dependency-analyser

- run: composer update --no-progress --prefer-stable

- run: vendor/bin/parallel-lint src bin tests
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ composer.lock

tmp
/.idea/

.phpunit.result.cache
52 changes: 0 additions & 52 deletions build/build-scoped.sh

This file was deleted.

12 changes: 0 additions & 12 deletions build/rector-downgrade-php.php

This file was deleted.

23 changes: 0 additions & 23 deletions build/target-repository/.github/workflows/auto_closer.yaml

This file was deleted.

24 changes: 0 additions & 24 deletions build/target-repository/.github/workflows/bare_run.yaml

This file was deleted.

3 changes: 0 additions & 3 deletions build/target-repository/README.md

This file was deleted.

16 changes: 0 additions & 16 deletions build/target-repository/composer.json

This file was deleted.

5 changes: 4 additions & 1 deletion composer-dependency-analyser.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@
declare(strict_types=1);

use ShipMonk\ComposerDependencyAnalyser\Config\Configuration;
use ShipMonk\ComposerDependencyAnalyser\Config\ErrorType;

return new Configuration();
// polyfill provides global functions, so no direct symbol usage is detected
return (new Configuration())
->ignoreErrorsOnPackage('symfony/polyfill-php80', [ErrorType::UNUSED_DEPENDENCY]);
8 changes: 5 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,18 @@
"bin/jack"
],
"require": {
"php": ">=8.4",
"php": ">=7.4",
"composer/semver": "^3.5",
"entropy/entropy": "^0.4.17",
"symfony/process": "^8.1"
"symfony/polyfill-php80": "^1.31",
"symfony/process": "^5.4 || ^6.4 || ^7.0 || ^8.1"
},
"require-dev": {
"symplify/easy-coding-standard": "^13.3",
"php-parallel-lint/php-parallel-lint": "^1.4",
"phpstan/extension-installer": "^1.4",
"phpstan/phpstan": "^2.2",
"phpunit/phpunit": "^13.3",
"phpunit/phpunit": "^9.6",
"rector/rector": "^2.6",
"rector/swiss-knife": "^2.6",
"shipmonk/composer-dependency-analyser": "^1.8",
Expand Down
18 changes: 0 additions & 18 deletions full-tool-build.sh

This file was deleted.

1 change: 0 additions & 1 deletion phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="vendor/autoload.php"
colors="true"
cacheDirectory=".phpunit.cache"
>
<testsuites>
<testsuite name="unit">
Expand Down
Loading
Loading