Skip to content

refactor: fix lvl5 errors for AwsS3 and AzureBlobStorage adapters #288

refactor: fix lvl5 errors for AwsS3 and AzureBlobStorage adapters

refactor: fix lvl5 errors for AwsS3 and AzureBlobStorage adapters #288

Workflow file for this run

name: Tests
on: [push, pull_request]
jobs:
build:
name: Build
runs-on: ubuntu-latest
strategy:
max-parallel: 10
matrix:
php: ['8.0', '8.1', '8.2']
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.2', packages: 'async-aws/simple-s3:^1.0', phpspec: 'spec/Gaufrette/Adapter/AsyncAwsS3Spec.php' }
- { php: '8.2', packages: 'aws/aws-sdk-php:^3.158', phpspec: 'spec/Gaufrette/Adapter/AwsS3Spec.php' }
- { php: '8.2', packages: 'google/apiclient:^2.12', phpspec: 'spec/Gaufrette/Adapter/GoogleCloudStorageSpec.php' }
- { php: '8.2', packages: 'doctrine/dbal:^2.3', phpspec: 'spec/Gaufrette/Adapter/DoctrineDbalSpec.php' }
- { php: '8.2', packages: 'doctrine/dbal:^3.4', phpspec: 'spec/Gaufrette/Adapter/DoctrineDbalSpec.php' }
- { php: '8.2', packages: 'league/flysystem:^1.0', phpspec: 'spec/Gaufrette/Adapter/FlysystemSpec.php' }
- { php: '8.2', packages: 'microsoft/azure-storage-blob:^1.0', phpspec: 'spec/Gaufrette/Adapter/AzureBlobStore' }
- { php: '8.2', packages: 'mongodb/mongodb:^1.1', phpspec: 'spec/Gaufrette/Adapter/GridFSSpec.php' }
- { php: '8.2', 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