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
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/tests export-ignore
/.phive export-ignore
/tools export-ignore
/tools/* binary
/tools/phive binary

/.editorconfig export-ignore
/.git-blame-ignore-revs export-ignore
Expand Down
69 changes: 67 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ jobs:
MATCHER_PATH: ${{ runner.tool_cache }}/php.json

- name: Run PHPStan
run: XDEBUG_MODE=off tools/phpstan analyse --no-progress --error-format=github
run: XDEBUG_MODE=off tools/.phpstan/vendor/bin/phpstan analyse --no-progress --error-format=github

dependency-audit:
name: Composer Audit
Expand Down Expand Up @@ -237,9 +237,26 @@ jobs:
if: ${{ matrix.id == 'rector' }}
run: composer --working-dir=tools/.rector install --no-interaction --no-progress --ansi

- name: Cache Phive tools
if: ${{ matrix.id != 'rector' }}
id: phive-cache
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: |
tools/composer-normalize
tools/php-cs-fixer
tools/phpunit
key: ${{ runner.os }}-phive-tools-${{ hashFiles('.phive/phars.xml') }}

- name: Install Phive tools
if: ${{ matrix.id != 'rector' && steps.phive-cache.outputs.cache-hit != 'true' }}
env:
GITHUB_AUTH_TOKEN: ${{ github.token }}
run: composer tools:install

- name: Run Rector
if: ${{ matrix.id == 'rector' }}
run: tools/rector --dry-run --ansi --no-progress-bar
run: tools/.rector/vendor/bin/rector --dry-run --ansi --no-progress-bar

- name: Run PHP-CS-Fixer
if: ${{ matrix.id == 'php-cs-fixer' }}
Expand Down Expand Up @@ -305,6 +322,22 @@ jobs:
composer update --no-interaction --no-progress --ansi --ignore-platform-req=ext-grpc
fi

- name: Cache Phive tools
id: phive-cache
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: |
tools/composer-normalize
tools/php-cs-fixer
tools/phpunit
key: ${{ runner.os }}-phive-tools-${{ hashFiles('.phive/phars.xml') }}

- name: Install Phive tools
if: steps.phive-cache.outputs.cache-hit != 'true'
env:
GITHUB_AUTH_TOKEN: ${{ github.token }}
run: composer tools:install

- name: Setup problem matchers for PHP
run: echo "::add-matcher::${MATCHER_PATH}"
env:
Expand Down Expand Up @@ -387,6 +420,22 @@ jobs:
- name: Install dependencies with Composer
run: composer install --no-interaction --no-progress --ansi

- name: Cache Phive tools
id: phive-cache
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: |
tools/composer-normalize
tools/php-cs-fixer
tools/phpunit
key: ${{ runner.os }}-phive-tools-${{ hashFiles('.phive/phars.xml') }}

- name: Install Phive tools
if: steps.phive-cache.outputs.cache-hit != 'true'
env:
GITHUB_AUTH_TOKEN: ${{ github.token }}
run: composer tools:install

- name: Setup Problem Matchers for PHPUnit
run: echo "::add-matcher::${MATCHER_PATH}"
env:
Expand Down Expand Up @@ -473,6 +522,22 @@ jobs:
- name: Install dependencies with Composer
run: composer install --no-interaction --no-progress --ansi --ignore-platform-req=ext-grpc

- name: Cache Phive tools
id: phive-cache
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: |
tools/composer-normalize
tools/php-cs-fixer
tools/phpunit
key: ${{ runner.os }}-phive-tools-${{ hashFiles('.phive/phars.xml') }}

- name: Install Phive tools
if: steps.phive-cache.outputs.cache-hit != 'true'
env:
GITHUB_AUTH_TOKEN: ${{ github.token }}
run: composer tools:install

- name: Setup problem matchers for PHP
run: echo "::add-matcher::${MATCHER_PATH}"
env:
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/secure-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,22 @@ jobs:
- name: Install dependencies with Composer
run: composer install --no-interaction --no-progress --ansi

- name: Cache Phive tools
id: phive-cache
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: |
tools/composer-normalize
tools/php-cs-fixer
tools/phpunit
key: ${{ runner.os }}-phive-tools-${{ hashFiles('.phive/phars.xml') }}

- name: Install Phive tools
if: steps.phive-cache.outputs.cache-hit != 'true'
env:
GITHUB_AUTH_TOKEN: ${{ github.token }}
run: composer tools:install

- name: Setup Problem Matchers for PHPUnit
run: echo "::add-matcher::${MATCHER_PATH}"
env:
Expand Down
6 changes: 6 additions & 0 deletions tools/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
/.phpunit.result.cache
/composer-normalize
/php-cs-fixer
/phpstan
/phpunit
/phpunit.phar
/rector
Binary file removed tools/composer-normalize
Binary file not shown.
Binary file removed tools/php-cs-fixer
Binary file not shown.
1 change: 0 additions & 1 deletion tools/phpstan

This file was deleted.

Loading