2020-06-01 03:50:39 +03:00
|
|
|
name: Tests
|
|
|
|
|
2021-01-06 03:07:15 +03:00
|
|
|
on: [push, pull_request]
|
2020-06-01 03:50:39 +03:00
|
|
|
|
|
|
|
jobs:
|
2021-01-06 03:07:15 +03:00
|
|
|
php-tests:
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
2022-02-14 17:59:33 +03:00
|
|
|
fail-fast: false
|
2021-01-06 03:07:15 +03:00
|
|
|
matrix:
|
2022-12-22 02:52:18 +03:00
|
|
|
php: [8.2, 8.1, 8.0]
|
2021-01-06 03:07:15 +03:00
|
|
|
dependency-version: [prefer-lowest, prefer-stable]
|
|
|
|
os: [ubuntu-latest, windows-latest]
|
|
|
|
|
|
|
|
name: ${{ matrix.os }} - PHP${{ matrix.php }} - ${{ matrix.dependency-version }}
|
2020-06-01 03:50:39 +03:00
|
|
|
|
|
|
|
steps:
|
2021-01-06 03:07:15 +03:00
|
|
|
- name: Checkout code
|
2022-12-08 19:15:34 +03:00
|
|
|
uses: actions/checkout@v3
|
2021-01-06 03:07:15 +03:00
|
|
|
|
|
|
|
- name: Setup PHP
|
|
|
|
uses: shivammathur/setup-php@v2
|
|
|
|
with:
|
|
|
|
php-version: ${{ matrix.php }}
|
|
|
|
extensions: dom, curl, libxml, mbstring, zip, bcmath, intl
|
2022-12-08 19:15:34 +03:00
|
|
|
ini-values: precision=16
|
2021-01-06 03:07:15 +03:00
|
|
|
coverage: none
|
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
composer install --no-interaction
|
|
|
|
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
|
|
|
|
|
|
|
|
- name: Execute tests
|
|
|
|
run: vendor/bin/phpunit
|