-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (49 loc) · 1.64 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
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions
on:
- pull_request
- push
name: CI
# todo fix pipelines for github CI
jobs:
tests:
name: Tests
runs-on: ${{ matrix.os }}
env:
PHP_EXTENSIONS: none, dom, json, libxml, mbstring, openssl, pdo_mysql, phar, soap, tokenizer, xml, xmlwriter
PHP_INI_VALUES: memory_limit=-1, assert.exception=1, zend.assertions=1, error_reporting=-1, log_errors_max_len=0, display_errors=On
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
php: [7.2, 7.3, 7.4, 8.0, 8.1]
compiler:
- default
dependencies:
- highest
env:
- DB_HOST: "127.0.0.1"
- DB_USER: ${{ secrets.RootPassword }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: configure mysql
uses: mirromutth/mysql-action@v1.1
with:
character set server: 'utf8'
collation server: 'utf8_general_ci'
mysql version: '5.7'
mysql database: 'testing'
mysql root password: ${{ secrets.RootPassword }}
- name: Install PHP with extensions
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
extensions: ${{ env.PHP_EXTENSIONS }}
ini-values: ${{ env.PHP_INI_VALUES }}
tools: none
- name: Install highest dependencies with composer
if: matrix.dependencies == 'highest'
run: php ./tools/composer update --no-ansi --no-interaction --no-progress
- name: Run tests with phpunit
run: php ./vendor/bin/phpunit