You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.1 KiB
39 lines
1.1 KiB
name: CI
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
php-versions: ['7.2', '7.3', '7.4']
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- uses: shivammathur/setup-php@v1
|
|
with:
|
|
php-version: ${{ matrix.php-versions }}
|
|
extensions: mbstring, gd, zip
|
|
ini-values: max_execution_time=600, memory_limit=-1
|
|
coverage: pcov
|
|
- name: Install dependencies
|
|
run: |
|
|
curl -sS https://getcomposer.org/installer | php -- --filename=composer
|
|
composer install
|
|
- name: Check code quality
|
|
run: |
|
|
vendor/bin/code-quality
|
|
- name: Test against highest versions
|
|
run: |
|
|
vendor/bin/unit-test
|
|
vendor/bin/functional-test
|
|
- name: Test against lowest versions
|
|
run: |
|
|
composer update --prefer-lowest
|
|
vendor/bin/unit-test
|
|
vendor/bin/functional-test ^3.4
|
|
- name: Archive code coverage results
|
|
uses: actions/upload-artifact@v1
|
|
with:
|
|
name: coverage
|
|
path: tests/coverage
|
|
|