forked from bigbluebutton/bigbluebutton-api-php
-
Notifications
You must be signed in to change notification settings - Fork 12
77 lines (72 loc) · 2.7 KB
/
ci.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
name: CI
on:
push:
pull_request:
jobs:
PHP_Lowest:
name: PHP ${{ matrix.php-versions }} wth lowest dependencies
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php-versions: ['8.1', '8.2', '8.3']
experimental: [false]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v2 #https://github.com/shivammathur/setup-php
with:
php-version: ${{ matrix.php-versions }}
extensions: bcmath, ctype, fileinfo, json, mbstring, dom, ldap, pdo, tokenizer, xml, mysql, sqlite
coverage: xdebug
- name: Update to lowest php dependencies
run: composer update --prefer-lowest
- name: Install php dependencies
run: composer install --dev --no-interaction
- name: Execute tests without coverage
run: tools/phpunit --testsuite="BigBlueButton unit test suite,BigBlueButton integration test suite"
PHP:
name: PHP ${{ matrix.php-versions }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php-versions: ['8.1', '8.2', '8.3']
experimental: [false]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v2 #https://github.com/shivammathur/setup-php
with:
php-version: ${{ matrix.php-versions }}
extensions: bcmath, ctype, fileinfo, json, mbstring, dom, ldap, pdo, tokenizer, xml, mysql, sqlite
coverage: xdebug
- name: Install php dependencies
run: composer install --dev --no-interaction
continue-on-error: ${{ matrix.experimental }}
- name: Execute code style check via php-cs-fixer
run: tools/php-cs-fixer fix --dry-run
continue-on-error: ${{ matrix.experimental }}
- name: Execute tests with coverage
if: ${{ !matrix.experimental }}
run: |
mkdir -p build/logs
tools/phpunit --coverage-clover=build/logs/coverage.xml --testsuite="BigBlueButton unit test suite,BigBlueButton integration test suite"
- name: Execute tests without coverage
if: ${{ matrix.experimental }}
run: tools/phpunit --testsuite="BigBlueButton unit test suite,BigBlueButton integration test suite"
continue-on-error: true
- name: Upload coverage
if: ${{ matrix.php-versions == '8.1' }}
uses: codecov/codecov-action@v3
- name: Run rector
if: ${{ matrix.php-versions == '8.1' }}
run: tools/rector process --dry-run
- name: Run psalm
if: ${{ matrix.php-versions == '8.1' }}
run: tools/psalm
- name: Run phpstan
if: ${{ matrix.php-versions == '8.1' }}
run: tools/phpstan