2023-01-27 15:26:04 +00:00
|
|
|
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"
|
2023-09-07 12:47:04 +00:00
|
|
|
uses: "actions/checkout@v4"
|
2023-01-27 15:26:04 +00:00
|
|
|
|
|
|
|
- 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
|