-
Notifications
You must be signed in to change notification settings - Fork 89
47 lines (37 loc) · 1.15 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
name: PHP
on:
- push
- pull_request
jobs:
run:
runs-on: ubuntu-latest
strategy:
max-parallel: 15
matrix:
laravel-version: [^10.0, ^11.0]
php-versions: ['8.1', '8.2', '8.3']
exclude:
- laravel-version: '^10.0'
php-versions: '8.1'
- laravel-version: '^11.0'
php-versions: '8.1'
name: PHP ${{ matrix.php-versions }} on ${{ matrix.laravel-version }}
steps:
- name: Checkout
uses: actions/checkout@master
- name: Setup PHP
uses: shivammathur/setup-php@master
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring, xdebug
coverage: xdebug
- name: Install dependencies
run: |
composer require --no-update --no-interaction "illuminate/support:${{ matrix.laravel-version }}" php-coveralls/php-coveralls
composer update --no-interaction --prefer-dist --no-suggest
- name: Lint composer.json
run: composer validate
- name: Run Tests
run: composer test:ci
- name: Upload Coverage
run: bash <(curl -s https://codecov.io/bash)