Testing #889
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Testing | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
schedule: | |
- cron: '11 20 * * *' | |
jobs: | |
syntax-check: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php-version: [5.6, 7.0, 7.1, 7.2, 7.3] | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Setup PHP ${{ matrix.php-version }} with PECL extension | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-version }} | |
extensions: curl, dom, json | |
tools: composer | |
- name: Runs on php ${{ matrix.php-version }}? | |
run: php bootstrap.php | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php-version: [8.0, 8.1, 8.2] | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Setup PHP ${{ matrix.php-version }} with PECL extension | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-version }} | |
extensions: curl, dom, json | |
tools: composer | |
- name: Install dependencies | |
run: composer install --prefer-dist --no-progress --no-suggest | |
- name: Test | |
run: composer test | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php-version: [7.4] | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Setup PHP ${{ matrix.php-version }} with PECL extension | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-version }} | |
extensions: curl, dom, json | |
tools: composer | |
- name: Validate composer.json and composer.lock | |
run: composer validate | |
- name: Install dependencies | |
run: composer install --prefer-dist --no-progress --no-suggest | |
- name: Test | |
run: composer test | |
- name: PHPStan | |
run: composer phpstan | |
- name: PHP-CS-Fixer | |
run: composer cs:no-cache |