-
Notifications
You must be signed in to change notification settings - Fork 63
38 lines (31 loc) · 1.26 KB
/
php.yml
File metadata and controls
38 lines (31 loc) · 1.26 KB
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
name: PHP Composer and tests
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
operating-system: [ubuntu-latest, windows-latest, macos-latest]
php-versions: ['7.3', '7.4']
dependency-version: [prefer-lowest, prefer-stable]
laravel: ['7.6.0', '7.28.0', '8.0.1', '8.2.0', '8.1.0']
runs-on: ${{ matrix.operating-system }}
name: PHP ${{ matrix.php-versions }} Laravel L${{ matrix.laravel }} Test on ${{ matrix.operating-system }}
steps:
- uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring, intl, fileinfo, pdo_sqlite, mysql
ini-values: post_max_size=256M, short_open_tag=On
coverage: xdebug
- name: Validate composer.json and composer.lock
run: composer validate
- name: Install dependencies
run: |
composer self-update
composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
# composer update --prefer-source --no-interaction --no-suggest
- name: Run phpunit tests
run: ./vendor/bin/phpunit