-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (40 loc) · 1.22 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
name: PHP tests
on:
push:
pull_request:
jobs:
Tests:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ['8.0', '8.1', '8.2', '8.3', 'latest']
c4p-tests-task-message-protocol-version: ['1', '2']
c4p-tests-broker-driver:
- PredisRedisDriver
- PhpAmqpLibAmqpDriver
c4p-tests-backend-driver:
- PredisRedisDriver
fail-fast: false
steps:
- uses: actions/checkout@v1
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
coverage: xdebug
- name: Prepare
run: |
composer install --optimize-autoloader
chmod +x ./bin/*.sh
- name: Run tests
run: ./bin/tests.sh
env:
C4P_TESTS_TASK_MESSAGE_PROTOCOL_VERSION: ${{ matrix.c4p-tests-task-message-protocol-version }}
C4P_TESTS_BROKER_DRIVER: ${{ matrix.c4p-tests-broker-driver }}
C4P_TESTS_BACKEND_DRIVER: ${{ matrix.c4p-tests-backend-driver }}
- name: Run code style analysis
continue-on-error: false
run: ./bin/code-style.sh
- name: Run static analysis
continue-on-error: true
run: ./bin/phpstan.sh