-
Notifications
You must be signed in to change notification settings - Fork 26
53 lines (39 loc) · 1.24 KB
/
continuous-integration.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: "Continuous Integration"
on:
- pull_request
- push
jobs:
coding-standards:
name: "Coding Standards"
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@master
- name: "Install PHP 8.1"
uses: shivammathur/setup-php@v2
with:
php-version: "8.1"
extensions: mbstring, xml
tools: composer:v2
- name: "Validate composer.json"
run: composer validate --no-check-all
- name: "Install dependencies with composer"
run: composer install --no-interaction --no-progress --ignore-platform-reqs
- name: "Run PHP CodeSniffer"
run: vendor/bin/phpcs --standard=phpcs.xml
static-code-analysis:
name: "Static Code Analysis"
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@master
- name: "Install PHP 8.1"
uses: shivammathur/setup-php@v2
with:
php-version: "8.1"
extensions: mbstring, xml
tools: composer:v2
- name: "Install dependencies with composer"
run: composer install --no-interaction --no-progress --ignore-platform-reqs
- name: "Run phpstan/phpstan"
run: vendor/bin/phpstan analyse