-
Notifications
You must be signed in to change notification settings - Fork 3
68 lines (64 loc) · 1.9 KB
/
quality.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Quality Checks
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
- cron: '37 9 1 * *'
jobs:
cs:
name: "Check coding standards"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: "Install PHP"
uses: shivammathur/setup-php@v2
with:
coverage: "none"
php-version: "8.0"
tools: composer:v2.1
env:
fail-fast: true
- name: "Install dependencies"
run: "composer install"
- name: "Run PHP_CodeSniffer"
run: "vendor/bin/phpcs"
static-analysis:
name: "Perform static analysis"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: "Install PHP"
uses: shivammathur/setup-php@v2
with:
coverage: "none"
php-version: "8.0"
tools: composer:v2.1
env:
fail-fast: true
- name: "Install dependencies"
run: "composer install"
- name: "Run Psalm"
run: "vendor/bin/psalm"
roave-backwards-compatibility-check:
name: "Check for Backward Compatibility breaks"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: "Install PHP"
uses: shivammathur/setup-php@v2
with:
coverage: "none"
php-version: "8.0"
tools: composer:v2.1
env:
fail-fast: true
- name: "Require Roave/BackwardCompatibilityCheck"
run: "composer require --no-update --no-interaction --prefer-dist --prefer-stable --dev roave/backward-compatibility-check:6.0.x-dev roave/better-reflection:5.0.x-dev"
- name: "Composer update with new requirements"
run: "composer update --no-interaction --prefer-dist --prefer-stable"
- name: "Check for BC breaks"
run: ".github/workflows/roave-backwards-compatibility-check.sh"