Skip to content
Open
Show file tree
Hide file tree
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
33 changes: 33 additions & 0 deletions .github/workflows/composer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Composer outdated

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: [ '7.1', '7.2', '7.3', '7.4' ]

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}

- name: Validate composer.json
run: composer validate --strict

- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-interaction

- name: Composer outdated
run: composer outdated -D --strict
33 changes: 33 additions & 0 deletions .github/workflows/extensions_finder.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Extensions finder

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: [ '7.1', '7.2', '7.3', '7.4' ]

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}

- name: Validate composer.json
run: composer validate --strict

- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-interaction

- name: PHP extensions finder
run: vendor/bin/php-extensions-finder check src bin tests
36 changes: 36 additions & 0 deletions .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: PHPstan

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: [ '7.1', '7.2', '7.3', '7.4' ]

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}

- name: Validate composer.json
run: composer validate --strict

- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-interaction

- name: Install PHPStan
run: composer require phpstan/phpstan --dev

- name: PHPStan analyse
run: vendor/bin/phpstan analyze src --level=max --no-progress
33 changes: 33 additions & 0 deletions .github/workflows/sniffer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Sniffer

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: [ '7.1', '7.2', '7.3', '7.4' ]

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}

- name: Validate composer.json
run: composer validate --strict

- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-interaction

- name: Check syntax
run: find src bin tests -name "*.php" -print0 | xargs -0 -n1 -P8 php -l
33 changes: 33 additions & 0 deletions .github/workflows/syntax_checker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Syntax checker

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: [ '7.1', '7.2', '7.3', '7.4' ]

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}

- name: Validate composer.json
run: composer validate --strict

- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-interaction

- name: Code sniffer
run: vendor/bin/phpcs src bin --standard=PSR2 -n
25 changes: 0 additions & 25 deletions .scrutinizer.yml

This file was deleted.

28 changes: 0 additions & 28 deletions .travis.yml

This file was deleted.