Skip to content

Commit

Permalink
Add Github Worflows build config.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisryan committed Sep 20, 2022
1 parent 5c05605 commit f00c0b2
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: PHP Composer

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

jobs:
build:
runs-on: ubuntu-18.04
strategy:
matrix:
php-versions: ['7.0', '7.1', '7.2', '7.3', '7.4']
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
- name: Validate composer.json and composer.lock
run: composer validate
- name: Install dependencies
run: composer install --prefer-dist --no-progress
- name: Run PHPCS
run: composer run-script lint
- name: Run PHPUnit
run: composer run-script test
9 changes: 9 additions & 0 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@ filter:
- 'vendor/*'
before_commands:
- 'composer install --prefer-source'
build:
nodes:
analysis:
tests:
override:
- php-scrutinizer-run
tests:
override:
- phpcs-run --standard=PSR2
tools:
php_analyzer: true
php_mess_detector: true
Expand Down

0 comments on commit f00c0b2

Please sign in to comment.