Skip to content

Commit

Permalink
Create ci.yml (#15)
Browse files Browse the repository at this point in the history
* Create ci.yml
* Allow newer PHPUnit
  • Loading branch information
donatj authored Sep 1, 2020
1 parent 62e5969 commit ddb05c2
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
on:
- pull_request
- push

name: CI

jobs:
run:
name: Tests

strategy:
matrix:
operating-system: [ubuntu-latest]
php-versions: ['7.1', '7.2', '7.3', '7.4']

runs-on: ${{ matrix.operating-system }}

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

- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}

- name: Install dependencies with composer
run: composer install

- name: Run tests
run: ./vendor/bin/phpunit
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
}
},
"require-dev": {
"phpunit/phpunit": "^7.5",
"phpunit/phpunit": "~7.5|~9.3",
"donatj/drop": "^1.0"
}
}

0 comments on commit ddb05c2

Please sign in to comment.