-
Notifications
You must be signed in to change notification settings - Fork 10
64 lines (53 loc) · 1.66 KB
/
ci.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: CI
on:
push:
branches: [ master ]
tags:
- '*'
pull_request:
branches: [ master ]
jobs:
build:
name: PHP ${{ matrix.php-version }} L ${{ matrix.laravel }}
runs-on: ubuntu-latest
strategy:
matrix:
php-version: [7.4, 8.1, 8.2]
laravel: [^8.0, ^9.0, ^10.0]
exclude:
- laravel: ^10.0
php-version: 7.4
- laravel: ^9.0
php-version: 7.4
- laravel: ^8.0
php-version: 8.1
- laravel: ^8.0
php-version: 8.2
include:
- laravel: ^9.0
php-version: 8.0
steps:
- uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
- name: Validate composer.json and composer.lock
run: composer validate --strict
- name: Enforce Laravel Version
run: composer require illuminate/support:${{ matrix.laravel }} --no-update --no-interaction --no-suggest
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v2
with:
path: vendor
key: composer-${{ runner.os }}-${{ matrix.php-version }}-${{ hashFiles('**/composer.*') }}-${{ matrix.composer-flags }}
restore-keys: |
composer-${{ runner.os }}-${{ matrix.php-version }}-${{ hashFiles('**/composer.*') }}-
composer-${{ runner.os }}-${{ matrix.php-version }}-
composer-${{ runner.os }}-
composer-
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest --no-interaction
- name: Run test suite
run: vendor/bin/phpunit --verbose