-
Notifications
You must be signed in to change notification settings - Fork 20
36 lines (31 loc) · 1.04 KB
/
run-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
36
name: Run Tests
on:
push:
pull_request:
schedule:
- cron: "0 0 * * *"
jobs:
run:
runs-on: ubuntu-latest
strategy:
matrix:
composer-flags: ["--prefer-stable", "--prefer-lowest"]
php-versions: ['7.3', '7.4', '8.0', '8.1', '8.2']
exclude:
- {php-versions: '8.1', composer-flags: "--prefer-lowest"}
- {php-versions: '8.2', composer-flags: "--prefer-lowest"}
name: PHP ${{ matrix.php-versions }} Tests (${{ matrix.composer-flags }})
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
ini-values: error_reporting=E_ALL, display_errors=On, zend.exception_ignore_args=Off
extensions: curl, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, iconv, xdebug
coverage: xdebug
- name: Install dependencies
run: composer update ${{ matrix.composer-flags }} --prefer-dist --no-interaction
- name: Run Tests
run: vendor/bin/phpunit