-
Notifications
You must be signed in to change notification settings - Fork 13
83 lines (66 loc) · 2.02 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
name: "Continuous Integration"
on: [ push, pull_request ]
jobs:
psalm:
name: Psalm
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.0
coverage: none
tools: composer:v2
- name: Install dependencies with composer
run: composer install -ov
- name: Run vimeo/psalm
run: ./vendor/bin/psalm --config=psalm.xml --shepherd
phpstan:
name: PHPStan
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.0
coverage: none
tools: composer:v2
- name: Install dependencies with composer
run: composer install -ov
- name: Run phpstan/phpstan
run: ./vendor/bin/phpstan analyse src --level 9
phpunit:
name: PHPUnit
runs-on: ubuntu-latest
services:
rabbitmq:
image: rabbitmq:alpine
ports:
- 5672:5672
env:
RABBITMQ_DEFAULT_USER: guest
RABBITMQ_DEFAULT_PASS: guest
options: --health-cmd "rabbitmqctl node_health_check" --health-interval 10s --health-timeout 5s --health-retries 5
env:
PHP_EXTENSIONS: mbstring, dom, intl, json, libxml, xml, xmlwriter, sockets
PHP_INI_VALUES: assert.exception=1, zend.assertions=1
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install PHP with extensions
uses: shivammathur/setup-php@v2
with:
php-version: 8.0
extensions: ${{ env.PHP_EXTENSIONS }}
ini-values: ${{ env.PHP_INI_VALUES }}
tools: composer:v2
- name: Install dependencies
run: composer update -ov
- name: Await
uses: jakejarvis/wait-action@master
- name: Run tests with phpunit
run: php ./vendor/bin/phpunit --configuration ./phpunit.xml