Skip to content

Commit 29c7b40

Browse files
authored
replace Travis CI with GitHub Actions (#120)
1 parent 8b9d265 commit 29c7b40

File tree

3 files changed

+38
-46
lines changed

3 files changed

+38
-46
lines changed

.github/workflows/unit-tests.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
on:
2+
push:
3+
pull_request:
4+
5+
jobs:
6+
phpunit:
7+
strategy:
8+
matrix:
9+
include:
10+
- php: 7.0
11+
suite: PHPCache
12+
- php: 7.0
13+
suite: Symfony
14+
- php: 7.0
15+
suite: Laravel
16+
# - php: 7.0
17+
# suite: Stash
18+
- php: 7.1
19+
suite: PHPCache
20+
# - php: 7.2
21+
# suite: PHPCache
22+
runs-on: ubuntu-latest
23+
services:
24+
redis:
25+
image: redis:6.2.8
26+
ports:
27+
- 6379:6379
28+
steps:
29+
- uses: actions/checkout@v4
30+
- uses: shivammathur/setup-php@v2
31+
with:
32+
php-version: ${{ matrix.php }}
33+
- run: |
34+
composer install --no-plugins --prefer-source
35+
- run: ./vendor/bin/simple-phpunit --testsuite ${{ matrix.suite }}
36+
env:
37+
SYMFONY_PHPUNIT_VERSION: '5.7'

.travis.yml

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

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"require-dev": {
2929
"cache/cache": "^1.0",
3030
"symfony/cache": "^3.4.31|^4.3.4|^5.0",
31-
"symfony/phpunit-bridge": "^5.1",
31+
"symfony/phpunit-bridge": "^5.1,<5.3",
3232
"illuminate/cache": "^5.4|^5.5|^5.6",
3333
"tedivm/stash": "^0.14",
3434
"mockery/mockery": "^1.0"

0 commit comments

Comments
 (0)