8
8
strategy :
9
9
fail-fast : true
10
10
matrix :
11
- php : [8.0, 7.4]
12
- laravel : [8.*, 7.* ]
11
+ php : [8.1, 8. 0, 7.4]
12
+ laravel : [8.*]
13
13
db : [mysql, postgres, sqlite]
14
14
dependency-version : [prefer-lowest, prefer-stable]
15
15
include :
16
- - laravel : 8.*
17
- testbench : 6.*
18
- - laravel : 7.*
19
- testbench : 5.*
16
+ - laravel : 8.*
17
+ testbench : 6.*
20
18
21
19
name : P${{ matrix.php }} - L${{ matrix.laravel }} - DB ${{ matrix.db }} - ${{ matrix.dependency-version }}
22
20
@@ -43,49 +41,49 @@ jobs:
43
41
options : --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
44
42
45
43
steps :
46
- - name : Checkout code
47
- uses : actions/checkout@v2
44
+ - name : Checkout code
45
+ uses : actions/checkout@v2
48
46
49
- - name : Cache dependencies
50
- uses : actions/cache@v2
51
- with :
52
- path : ~/.composer/cache/files
53
- key : dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
47
+ - name : Cache dependencies
48
+ uses : actions/cache@v2
49
+ with :
50
+ path : ~/.composer/cache/files
51
+ key : dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
54
52
55
- - name : Setup PHP
56
- uses : shivammathur/setup-php@v2
57
- with :
58
- php-version : ${{ matrix.php }}
59
- extensions : dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, mysql, mysqli, pdo_mysql
60
- coverage : none
53
+ - name : Setup PHP
54
+ uses : shivammathur/setup-php@v2
55
+ with :
56
+ php-version : ${{ matrix.php }}
57
+ extensions : dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, mysql, mysqli, pdo_mysql
58
+ coverage : none
61
59
62
- - name : Install dependencies
63
- run : |
64
- composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
65
- composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
60
+ - name : Install dependencies
61
+ run : |
62
+ composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
63
+ composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
66
64
67
- - name : Execute tests (MySQL)
68
- run : vendor/bin/phpunit
69
- if : ${{ matrix.db == 'mysql' }}
70
- env :
71
- DB_DATABASE : protone_media_db_test_mysql
72
- DB_USERNAME : protone_media_db_test
73
- DB_PASSWORD : secret
74
- DB_PORT : ${{ job.services.mysql.ports[3306] }}
65
+ - name : Execute tests (MySQL)
66
+ run : vendor/bin/phpunit
67
+ if : ${{ matrix.db == 'mysql' }}
68
+ env :
69
+ DB_DATABASE : protone_media_db_test_mysql
70
+ DB_USERNAME : protone_media_db_test
71
+ DB_PASSWORD : secret
72
+ DB_PORT : ${{ job.services.mysql.ports[3306] }}
75
73
76
- - name : Execute tests (PostgreSQL)
77
- run : vendor/bin/phpunit
78
- if : ${{ matrix.db == 'postgres' }}
79
- env :
80
- DB_CONNECTION : pgsql
81
- DB_DATABASE : protone_media_db_test_postgres
82
- DB_USERNAME : protone_media_db_test
83
- DB_PASSWORD : secret
84
- DB_PORT : ${{ job.services.postgres.ports[5432] }}
74
+ - name : Execute tests (PostgreSQL)
75
+ run : vendor/bin/phpunit
76
+ if : ${{ matrix.db == 'postgres' }}
77
+ env :
78
+ DB_CONNECTION : pgsql
79
+ DB_DATABASE : protone_media_db_test_postgres
80
+ DB_USERNAME : protone_media_db_test
81
+ DB_PASSWORD : secret
82
+ DB_PORT : ${{ job.services.postgres.ports[5432] }}
85
83
86
- - name : Execute tests (SQLite)
87
- run : vendor/bin/phpunit
88
- if : ${{ matrix.db == 'sqlite' }}
89
- env :
90
- DB_CONNECTION : sqlite
91
- DB_DATABASE : ' :memory:'
84
+ - name : Execute tests (SQLite)
85
+ run : vendor/bin/phpunit
86
+ if : ${{ matrix.db == 'sqlite' }}
87
+ env :
88
+ DB_CONNECTION : sqlite
89
+ DB_DATABASE : " :memory:"
0 commit comments