Fix UX when a non-required plugin is still present in vendor dir (#12… #881
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Autoloader" | |
on: | |
push: | |
paths-ignore: | |
- 'doc/**' | |
pull_request: | |
paths-ignore: | |
- 'doc/**' | |
permissions: | |
contents: read | |
jobs: | |
tests: | |
name: "Autoloader" | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Checkout" | |
uses: "actions/checkout@v4" | |
- name: "Install Composer dependencies" | |
run: "composer config platform --unset && composer install" | |
- name: "Dump autoloader in the test directory using latest Composer" | |
run: "./bin/composer install -d tests/Composer/Test/Autoload/MinimumVersionSupport" | |
- name: "Install oldest supported PHP version for autoloader" | |
uses: "shivammathur/setup-php@v2" | |
with: | |
coverage: "none" | |
extensions: "intl, zip" | |
ini-values: "memory_limit=-1" | |
php-version: "5.6" | |
- name: "Check the autoloader can be executed" | |
run: "php main.php" | |
working-directory: tests/Composer/Test/Autoload/MinimumVersionSupport |