Skip to content

Commit

Permalink
Merge pull request #8 from chrisryan/master
Browse files Browse the repository at this point in the history
Add Github Worflows build config.
  • Loading branch information
chrisryan committed Sep 20, 2022
2 parents 5c05605 + 197d951 commit 74799ef
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 1 deletion.
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
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
},
"require-dev": {
"phpunit/phpunit": "^6.0",
"php-coveralls/php-coveralls": "^1.0",
"squizlabs/php_codesniffer": "^3.2"
},
"autoload": {
Expand Down

0 comments on commit 74799ef

Please sign in to comment.