Skip to content

Commit

Permalink
replace Travis CI with GitHub Actions (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
xabbuh authored Sep 17, 2024
1 parent 8b9d265 commit 29c7b40
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 46 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/unit-tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
on:
push:
pull_request:

jobs:
phpunit:
strategy:
matrix:
include:
- php: 7.0
suite: PHPCache
- php: 7.0
suite: Symfony
- php: 7.0
suite: Laravel
# - php: 7.0
# suite: Stash
- php: 7.1
suite: PHPCache
# - php: 7.2
# suite: PHPCache
runs-on: ubuntu-latest
services:
redis:
image: redis:6.2.8
ports:
- 6379:6379
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
- run: |
composer install --no-plugins --prefer-source
- run: ./vendor/bin/simple-phpunit --testsuite ${{ matrix.suite }}
env:
SYMFONY_PHPUNIT_VERSION: '5.7'
45 changes: 0 additions & 45 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"require-dev": {
"cache/cache": "^1.0",
"symfony/cache": "^3.4.31|^4.3.4|^5.0",
"symfony/phpunit-bridge": "^5.1",
"symfony/phpunit-bridge": "^5.1,<5.3",
"illuminate/cache": "^5.4|^5.5|^5.6",
"tedivm/stash": "^0.14",
"mockery/mockery": "^1.0"
Expand Down

0 comments on commit 29c7b40

Please sign in to comment.