Skip to content

Commit

Permalink
Introduce Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
weirdan committed Apr 9, 2021
1 parent 9bd7ce2 commit b7ecf00
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: CI

on:
- push
- pull_request
jobs:
ci:
name: CI checks
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php:
- 5.6
- 7.0
- 7.1
- 7.2
- 7.3
- 7.4
- 8.0
steps:
- uses: actions/checkout@v2
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer:v2
- name: Run composer install
run: composer install
env:
COMPOSER_ROOT_VERSION: dev-master
- run: vendor/bin/parallel-lint src
- run: composer cs-check
- run: composer test
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"phpunit/phpunit": "^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.0",
"ext-xdebug": "*",
"php": "~5.6 || ~7.0",
"squizlabs/php_codesniffer": "^3.3"
"squizlabs/php_codesniffer": "^3.3",
"php-parallel-lint/php-parallel-lint": "^1.3"
},
"autoload-dev": {
"psr-4": {
Expand Down

0 comments on commit b7ecf00

Please sign in to comment.