-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (38 loc) · 1.35 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
name: CI(PhpStan -> PhpUnit)
on:
pull_request:
jobs:
phpstan:
runs-on: ubuntu-latest
if: (!contains(github.event.head_commit.message, '[skip ci]'))
steps:
- uses: actions/checkout@v2
- uses: php-actions/phpstan@v3
with:
memory_limit: 512M
configuration: ./phpstan.neon
php-tests:
if: (!contains(github.event.head_commit.message, '[skip ci]'))
needs: [phpstan]
strategy:
matrix:
os: [ubuntu-latest]
php: [8.2]
laravel: [10.*]
dependency-version: [prefer-lowest, prefer-stable]
include:
- laravel: 10.*
testbench: 8.*
runs-on: ${{ matrix.os }}
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: curl, pdo_sqlite
coverage: none
- run: composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update --dev
- run: composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
- run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- run: vendor/bin/phpunit