-
Notifications
You must be signed in to change notification settings - Fork 3
35 lines (35 loc) · 1.01 KB
/
Copy pathcontinuous-integration.yaml
File metadata and controls
35 lines (35 loc) · 1.01 KB
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
name: Continuous Integration
on:
push:
branches:
- '**'
workflow_dispatch: { }
env:
PHP_VERSION: 8.1
jobs:
unit-tests:
runs-on: ubuntu-latest
env:
PHP_EXTENSIONS: none, ctype, curl, dom, json, libxml, mbstring, openssl, 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:
matrix:
php-version:
- '8.1'
- '8.2'
- '8.3'
- '8.4'
- '8.5'
steps:
- uses: actions/checkout@v3
- 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: composer:v2
coverage: pcov
- run: composer install
- name: Run tests with phpunit
run: ./vendor/bin/phpunit tests --coverage-text