-
-
Notifications
You must be signed in to change notification settings - Fork 43
53 lines (41 loc) · 1.32 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
46
47
48
49
50
51
52
53
name: Build
on:
push:
pull_request:
jobs:
cs-fix:
runs-on: ubuntu-20.04
name: PHP-CS-Fixer
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Fix CS
uses: docker://oskarstark/php-cs-fixer-ga
build:
strategy:
matrix:
container: [ "php74", "php80", "php81", "php82" ]
runs-on: ubuntu-latest
container: pugx/poser:${{ matrix.container }}
steps:
- uses: actions/checkout@v2
- name: Validate composer.json
run: composer validate
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v2
with:
path: vendor
key: ${{ runner.os }}-php-${{ matrix.container }}-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-${{ matrix.container }}
- name: Install dependencies
run: composer install -n --no-progress --no-suggest
- name: Coding Standard Checks
run: PHP_CS_FIXER_IGNORE_ENV=1 bin/php-cs-fixer fix --verbose --diff --dry-run
- name: Run tests (phpspec)
run: ./bin/phpspec run --format=pretty
- name: Run coverage tests (phpspec)
run: XDEBUG_MODE=coverage bin/phpspec run -f progress -c phpspec-coverage.yml
- name: Run behat tests
run: ./bin/behat --snippets-for