-
Notifications
You must be signed in to change notification settings - Fork 355
76 lines (62 loc) · 2.57 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
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