mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
40 lines
1.2 KiB
YAML
40 lines
1.2 KiB
YAML
name: Tests
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- develop
|
|
pull_request:
|
|
|
|
jobs:
|
|
phpUnitTests:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
max-parallel: 6
|
|
matrix:
|
|
phpVersions: ['7.1', '7.2', '7.3']
|
|
fail-fast: false
|
|
name: PHP ${{ matrix.phpVersions }}
|
|
steps:
|
|
- name: Checkout changes
|
|
uses: actions/checkout@v1
|
|
- name: Install PHP
|
|
uses: shivammathur/setup-php@master
|
|
with:
|
|
php-version: ${{ matrix.phpVersions }}
|
|
- name: Install Composer dependencies
|
|
run: composer install --no-interaction --no-progress --no-suggest
|
|
- name: Reset October modules and library
|
|
run: |
|
|
git reset --hard HEAD
|
|
rm -rf ./vendor/october/rain
|
|
wget https://github.com/octobercms/library/archive/develop.zip -O ./vendor/october/develop.zip
|
|
unzip ./vendor/october/develop.zip -d ./vendor/october
|
|
mv ./vendor/october/library-develop ./vendor/october/rain
|
|
composer dump-autoload
|
|
- name: Run Linting and Tests
|
|
run: |
|
|
./vendor/bin/parallel-lint --exclude vendor --exclude storage --exclude tests/fixtures/plugins/testvendor/goto/Plugin.php .
|
|
./vendor/bin/phpunit
|