-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (31 loc) · 1.18 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
name: CI(PhpStan -> PhpUnit)
on:
pull_request:
jobs:
php-tests:
if: (!contains(github.event.head_commit.message, '[skip ci]'))
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
- name: Static analysis
run: vendor/bin/phpstan --memory-limit=512M analyze
- name: Unit testing
run: vendor/bin/phpunit