Use the configuration file to pass the location of the tests and autoload class files. Pass -sp to phpcs command
23 lines
455 B
YAML
23 lines
455 B
YAML
name: PHP build
|
|
on:
|
|
[pull_request, push]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
php: [7.2, 7.3]
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Install dependencies
|
|
run: composer install --prefer-dist --no-interaction --ansi
|
|
|
|
- name: Running phpcs
|
|
run: composer run-script cs
|
|
|
|
- name: Run tests
|
|
run: php${{ matrix.php }} ./vendor/bin/phpunit
|