fix: make commande to remove phpspec adapter (#707) #410
This file contains hidden or 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: Tests | |
| on: [push, pull_request] | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| strategy: | |
| max-parallel: 10 | |
| matrix: | |
| php: ['7.4', '8.0', '8.1'] | |
| steps: | |
| - name: Set up PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php }} | |
| coverage: none | |
| tools: flex | |
| - name: Checkout code | |
| uses: actions/checkout@v2 | |
| - name: Download dependencies | |
| run: | | |
| composer update --no-interaction --prefer-dist --optimize-autoloader --prefer-stable | |
| - name: Remove PHPSpec adapter tests | |
| run: make remove-phpspec | |
| - name: PHPSpec | |
| run: php vendor/bin/phpspec run -fpretty --verbose | |
| - name: PHPUnit | |
| run: php vendor/bin/phpunit | |
| adapter: | |
| name: Adapter | |
| runs-on: ubuntu-latest | |
| strategy: | |
| max-parallel: 10 | |
| matrix: | |
| run: | |
| - { php: '8.1', packages: 'async-aws/simple-s3:^1.0', phpspec: 'spec/Gaufrette/Adapter/AsyncAwsS3Spec.php' } | |
| - { php: '8.1', packages: 'aws/aws-sdk-php:^3.158', phpspec: 'spec/Gaufrette/Adapter/AwsS3Spec.php' } | |
| - { php: '8.1', packages: 'google/apiclient:^2.12', phpspec: 'spec/Gaufrette/Adapter/GoogleCloudStorageSpec.php' } | |
| - { php: '8.1', packages: 'doctrine/dbal:^2.3', phpspec: 'spec/Gaufrette/Adapter/DoctrineDbalSpec.php' } | |
| - { php: '8.1', packages: 'doctrine/dbal:^3.4', phpspec: 'spec/Gaufrette/Adapter/DoctrineDbalSpec.php' } | |
| - { php: '8.1', packages: 'league/flysystem:^1.0', phpspec: 'spec/Gaufrette/Adapter/FlysystemSpec.php' } | |
| - { php: '8.1', packages: 'microsoft/azure-storage-blob:^1.0', phpspec: 'spec/Gaufrette/Adapter/AzureBlobStore' } | |
| - { php: '8.1', packages: 'mongodb/mongodb:^1.1', phpspec: 'spec/Gaufrette/Adapter/GridFSSpec.php' } | |
| - { php: '8.1', packages: 'phpseclib/phpseclib:^2.0', phpspec: 'spec/Gaufrette/Adapter/PhpseclibSftpSpec.php' } | |
| steps: | |
| - name: Set up PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.run.php }} | |
| coverage: none | |
| tools: flex | |
| - name: Checkout code | |
| uses: actions/checkout@v2 | |
| - name: Download dependencies | |
| run: | | |
| composer req ${{ matrix.run.packages }} --no-update | |
| composer update --no-interaction --prefer-dist --optimize-autoloader --prefer-stable | |
| - name: PHPSpec | |
| if: ${{ matrix.run.phpspec }} | |
| run: php vendor/bin/phpspec run -fpretty --verbose ${{ matrix.run.phpspec }} | |
| - name: PHPUnit | |
| run: php vendor/bin/phpunit |