Skip to content

Commit f9541cd

Browse files
authored
Merge pull request #45 from jbroadway/github-actions
GitHub actions to replace travis-ci
2 parents 78464a7 + af30566 commit f9541cd

3 files changed

Lines changed: 44 additions & 14 deletions

File tree

.github/workflows/ci.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: "Continuous Integration"
2+
3+
on:
4+
- push
5+
- pull_request
6+
7+
env:
8+
COMPOSER_FLAGS: "--no-interaction --prefer-dist"
9+
10+
jobs:
11+
tests:
12+
name: "CI"
13+
14+
runs-on: ubuntu-latest
15+
16+
strategy:
17+
matrix:
18+
php-version:
19+
- "7.2"
20+
- "7.3"
21+
- "7.4"
22+
- "8.0"
23+
24+
dependencies: [highest]
25+
26+
steps:
27+
- name: "Checkout"
28+
uses: "actions/checkout@v2"
29+
30+
- name: "Setup PHP"
31+
uses: "shivammathur/setup-php@v2"
32+
with:
33+
coverage: "none"
34+
php-version: "${{ matrix.php-version }}"
35+
36+
- name: "Install dependencies"
37+
run: |
38+
composer update ${{ env.COMPOSER_FLAGS }}
39+
40+
- name: "Run tests"
41+
run: "composer exec phpunit -- --verbose"

.travis.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
}
1414
],
1515
"require": {
16-
"psr/log": "1.*",
17-
"php": ">=5.3.2"
16+
"psr/log": "^1.0.1",
17+
"php": ">=7.2"
1818
},
1919
"require-dev": {
20-
"phpunit/phpunit": "^4.8.36 || ^5.7 || ^6.5"
20+
"phpunit/phpunit": "^8.5"
2121
},
2222
"autoload": {
2323
"psr-0": {

0 commit comments

Comments
 (0)