Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 16 additions & 16 deletions .github/workflows/ci.yml → .github/workflows/integrate.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
name: ci
name: Integration tests
on:
pull_request:
push:
branches:
- "master"
- 'master'

jobs:
run:
runs-on: ${{ matrix.operating-system }}
integrate:
strategy:
matrix:
operating-system: ['ubuntu-latest']
Expand All @@ -23,42 +22,43 @@ jobs:
php-versions: '7.4'
composer-prefer-lowest: false
coveralls: true
runs-on: ${{ matrix.operating-system }}
steps:
- name: Checkout repo
uses: actions/checkout@v2

- name: Configure PHP
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
tools: composer:v1
coverage: xdebug
extensions: bcmath, gd

- name: Checkout repo
uses: actions/checkout@v2

- name: Install Composer dependencies
run: composer install
run: composer install --no-progress

- name: Install lowest PHPStan version
if: matrix.composer-prefer-lowest == true
run: |
composer remove phpstan/phpstan phpstan/phpstan-phpunit
composer remove --no-update phpstan/phpstan phpstan/phpstan-phpunit
composer require --prefer-lowest phpstan/phpstan:0.12.23 phpstan/phpstan-phpunit:0.12.11

- name: Codesniffer
run: composer cs-check
run: composer run-script cs-check

- name: Static code analysis
run: composer analyze
run: composer run-script analyze

- name: Unittests
- name: Unit tests
if: matrix.coveralls == false
run: composer test
run: composer run-script test

- name: Unittests with coverage
if: matrix.coveralls == true
run: composer coverage
run: composer run-script coverage

- name: Coveralls report
- name: Send Coveralls report
if: matrix.coveralls == true
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down