-
-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (35 loc) · 1.03 KB
/
build-test.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
name: Build & Test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
# follows https://www.php.net/supported-versions.php
php-versions: ['8.1', '8.2', '8.3']
phpunit-versions: ['latest']
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
# extensions: mbstring, intl
ini-values: post_max_size=256M, max_execution_time=180
coverage: xdebug
tools: php-cs-fixer, phpunit
- name: Validate composer.json and composer.lock
run: composer validate --strict
- name: Install Composer dependencies
uses: ramsey/composer-install@v3
- name: Run test suite
run: composer run-script test
- uses: codecov/codecov-action@v4
if: matrix.php-versions == '8.1'
with:
# Comma-separated list of files to upload
files: ./tmp/code-coverage.xml