-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (42 loc) · 1.28 KB
/
Copy pathphp.yml
File metadata and controls
56 lines (42 loc) · 1.28 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- operating-system: 'ubuntu-18.04'
php-version: '7.2'
- operating-system: 'ubuntu-20.04'
php-version: '7.4'
- operating-system: 'ubuntu-20.04'
php-version: '8.0'
name: PHP ${{ matrix.php-version }}
runs-on: ${{ matrix.operating-system }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Choose PHP Version
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
env:
fail-fast: false # disabled as old PHP version cannot run flex
update: ${{ matrix.php-version == '8.0' }} # force update to 8.0.1+, ref https://github.com/shivammathur/setup-php/issues/394#issuecomment-760461251
- name: Validate composer.json and composer.lock
run: composer validate
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest
- name: Run test suite
run: composer test
- name: Run phpstan
run: composer stan
- name: Run psalm
run: composer psalm
- name: Run CS Fixer
run: composer phpcs