Skip to content

Commit ddb05c2

Browse files
authored
Create ci.yml (#15)
* Create ci.yml * Allow newer PHPUnit
1 parent 62e5969 commit ddb05c2

2 files changed

Lines changed: 32 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
on:
2+
- pull_request
3+
- push
4+
5+
name: CI
6+
7+
jobs:
8+
run:
9+
name: Tests
10+
11+
strategy:
12+
matrix:
13+
operating-system: [ubuntu-latest]
14+
php-versions: ['7.1', '7.2', '7.3', '7.4']
15+
16+
runs-on: ${{ matrix.operating-system }}
17+
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v2
21+
22+
- name: Install PHP
23+
uses: shivammathur/setup-php@v2
24+
with:
25+
php-version: ${{ matrix.php-versions }}
26+
27+
- name: Install dependencies with composer
28+
run: composer install
29+
30+
- name: Run tests
31+
run: ./vendor/bin/phpunit

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
}
2323
},
2424
"require-dev": {
25-
"phpunit/phpunit": "^7.5",
25+
"phpunit/phpunit": "~7.5|~9.3",
2626
"donatj/drop": "^1.0"
2727
}
2828
}

0 commit comments

Comments
 (0)