-
-
Notifications
You must be signed in to change notification settings - Fork 5
35 lines (30 loc) · 953 Bytes
/
tests.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
name: Tests
on:
push:
branches:
- master
pull_request:
schedule:
- cron: "0 0 * * THU"
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ['8.0', '8.1', '8.2', '8.3']
phpcsfixer-version: ['3.*', '*']
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
tools: composer:v2
- uses: actions/checkout@v3
- name: Download PHP-CS-Fixer ${{ matrix.phpcsfixer-version }}
run: composer require friendsofphp/php-cs-fixer:${{ matrix.phpcsfixer-version }} --prefer-source --no-update
- uses: php-actions/composer@v6
with:
php_version: ${{ matrix.php-versions }}
version: 2
- name: Run test suite on PHP ${{ matrix.php-versions }} and PHP-CS-Fixer ${{ matrix.phpcsfixer-version }}
run: XDEBUG_MODE=coverage ./vendor/bin/phpunit