-
-
Notifications
You must be signed in to change notification settings - Fork 86
41 lines (41 loc) · 1017 Bytes
/
static-analysis.yaml
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
name: Static Analysis
on:
push:
paths:
- "src/**"
- "tests/**"
- "composer.json"
- ".github/workflows/static-analysis.yaml"
jobs:
lint-on-56:
name: PHP 5.6 lint
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v2
- run: make lint
phpcs:
name: phpcs
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v2
- run: make phpcs
phpstsan:
name: phpstan
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Cache Composer dependencies
uses: actions/cache@v3
with:
path: /tmp/composer-cache
key: ${{ runner.os }}-${{ hashFiles('**/composer.json') }}-${{ matrix.codeception_version }}
- name: Install dependencies
uses: php-actions/composer@v6
with:
php_version: 7.4
version: 2.2
args: --ignore-platform-reqs
- run: make phpstan