-
Notifications
You must be signed in to change notification settings - Fork 7
45 lines (38 loc) · 1.25 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
name: PHPUnit
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php-versions: [ '7.3', '7.4', '8.0' ]
laravel: [ 8.*, 7.* ]
phpunit-versions: [ 'latest' ]
include:
- laravel: 8.*
testbench: 6.*
- laravel: 7.*
testbench: 5.*
name: PHP ${{ matrix.php-versions }} - Laravel ${{ matrix.laravel }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring, ctype, fileinfo, openssl, PDO, bcmath, json, tokenizer, xml
tools: phpunit:${{ matrix.phpunit-versions }}
coverage: none
- name: Install dependencies
if: steps.composer-cache.outputs.cache-hit != 'true'
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --prefer-stable --prefer-dist --no-interaction --no-suggest
- name: Run test suite
run: composer run-script test