2020-05-29 12:52:41 +00:00
|
|
|
name: CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
push:
|
2020-11-04 16:26:20 +00:00
|
|
|
schedule:
|
|
|
|
- cron: '* 2 */7 * *'
|
2020-05-29 12:52:41 +00:00
|
|
|
|
|
|
|
jobs:
|
2020-05-30 02:29:55 +00:00
|
|
|
test:
|
2020-05-29 12:52:41 +00:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest, windows-latest]
|
|
|
|
php: [7.3, 7.4]
|
|
|
|
dependency-version: [prefer-lowest, prefer-stable]
|
|
|
|
|
|
|
|
name: P${{ matrix.php }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v1
|
|
|
|
|
|
|
|
- name: Cache dependencies
|
|
|
|
uses: actions/cache@v1
|
|
|
|
with:
|
|
|
|
path: ~/.composer/cache/files
|
|
|
|
key: dependencies-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
|
|
|
|
|
|
|
|
- name: Setup PHP
|
|
|
|
uses: shivammathur/setup-php@v1
|
|
|
|
with:
|
|
|
|
php-version: ${{ matrix.php }}
|
|
|
|
coverage: none
|
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
composer install
|
|
|
|
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
|
|
|
|
|
|
|
|
- name: Execute tests
|
2020-05-30 02:29:55 +00:00
|
|
|
run: make test
|