forked from brayancruces/twilio
-
Notifications
You must be signed in to change notification settings - Fork 36
48 lines (38 loc) · 1.16 KB
/
php.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
name: PHP
on:
- push
- pull_request
jobs:
run:
runs-on: ubuntu-latest
strategy:
max-parallel: 15
fail-fast: false
matrix:
laravel-version: ['10.*', '11.0', ^8.0, ^9.0]
php-version: ['8.0', '8.1', '8.2']
exclude:
- laravel-version: 11.*
php-version: '8.0'
- laravel-version: 11.*
php-version: '8.1'
name: PHP ${{ matrix.php-version }} on Laravel ${{ matrix.laravel-version }}
steps:
- name: Checkout
uses: actions/checkout@master
- name: Setup PHP
uses: shivammathur/setup-php@master
with:
php-version: ${{ matrix.php-version }}
extension-csv: mbstring, xdebug
coverage: xdebug
- name: Install dependencies
run: |
composer require --no-update --no-interaction "illuminate/support:${{ matrix.laravel-version }}"
composer update --no-interaction --prefer-dist --no-suggest
- name: Lint composer.json
run: composer validate
- name: Run Tests
run: composer test:unit
- name: Run Integration Tests
run: composer test:integration