Skip to content
Merged
32 changes: 32 additions & 0 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Static Analysis

on: ['push', 'pull_request']

jobs:
ci:
runs-on: ubuntu-latest
strategy:
matrix:
php: ['7.2', '7.3', '7.4', '8.0']
name: Code Style

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

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer:v2
ini-values: pcov.directory=api #optional, see above for usage.
coverage: pcov

- name: Install Dependencies
run: composer update --no-interaction --no-progress

- name: Run PHPCS
run: composer run cs

- name: Run PHPStan
run: composer run static
36 changes: 36 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Tests

on: ['push', 'pull_request']

jobs:
ci:
runs-on: ubuntu-latest
strategy:
matrix:
php: ['7.2', '7.3', '7.4', '8.0']

name: PHP ${{ matrix.php }}

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

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

- name: Setup Problem Matches
run: |
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"

- name: Install PHP 7 dependencies
run: composer update --no-interaction --no-progress

- name: Tests
run: TERM=xterm-256color ./vendor/bin/phpunit --coverage-clover ./build/logs/clover.xml

- uses: codecov/codecov-action@v1
29 changes: 0 additions & 29 deletions .travis.yml

This file was deleted.

28 changes: 0 additions & 28 deletions appveyor.yml

This file was deleted.