File tree Expand file tree Collapse file tree 3 files changed +70
-4
lines changed
Expand file tree Collapse file tree 3 files changed +70
-4
lines changed Original file line number Diff line number Diff line change 1+ name : Tests
2+
3+ on : ['push', 'pull_request']
4+
5+ jobs :
6+ ci :
7+ runs-on : ubuntu-latest
8+
9+ strategy :
10+ matrix :
11+ php : [7.4]
12+ scout : ["8.*", "9.*"]
13+ dependency-version : [prefer-stable, prefer-lowest]
14+ include :
15+ - scout : " ^9.0"
16+ php : 8.0
17+ dependency-version : " prefer-lowest"
18+ - scout : " ^8.5"
19+ php : 8.0
20+ dependency-version : " prefer-lowest"
21+ - scout : " ^8.0"
22+ php : 7.2
23+ dependency-version : " prefer-lowest"
24+ - scout : " ^8.0"
25+ php : 7.3
26+ dependency-version : " prefer-lowest"
27+ - scout : " ^9.0"
28+ php : 8.0
29+ dependency-version : " prefer-stable"
30+ - scout : " ^8.5"
31+ php : 8.0
32+ dependency-version : " prefer-stable"
33+ - scout : " ^8.0"
34+ php : 7.2
35+ dependency-version : " prefer-stable"
36+ - scout : " ^8.0"
37+ php : 7.3
38+ dependency-version : " prefer-stable"
39+
40+ name : PHP ${{ matrix.php }} - Scout ${{ matrix.scout }} (${{ matrix.dependency-version }})
41+
42+ steps :
43+
44+ - name : Checkout
45+ uses : actions/checkout@v2
46+
47+ - name : Cache dependencies
48+ uses : actions/cache@v1
49+ with :
50+ path : ~/.composer/cache/files
51+ key : dependencies-php-${{ matrix.php }}-composer-${{ matrix.scout }}-${{ matrix.dependency-version }}
52+
53+ - name : Setup PHP
54+ uses : shivammathur/setup-php@v2
55+ with :
56+ php-version : ${{ matrix.php }}
57+ extensions : mbstring, zip
58+ coverage : pcov
59+
60+ - name : Install Composer dependencies
61+ run : |
62+ composer require "laravel/scout:${{ matrix.scout }}" --no-interaction --no-update
63+ composer update --${{ matrix.dependency-version }} --no-interaction --prefer-dist --no-suggest
64+
65+ - name : PHPUnit Testing
66+ run : vendor/bin/phpunit
Original file line number Diff line number Diff line change 22
33[ ![ Latest Stable Version] ( https://poser.pugx.org/boxed-code/laravel-scout-elasticsearch/v/stable )] ( https://packagist.org/packages/boxed-code/laravel-scout-elasticsearch )
44[ ![ License] ( https://poser.pugx.org/boxed-code/laravel-scout-elasticsearch/license )] ( https://packagist.org/packages/boxed-code/laravel-scout-elasticsearch )
5- [ ![ Build Status ] ( https://travis-ci .com/boxed-code/laravel-scout-elasticsearch. svg?branch=master )] ( https://travis-ci .com/boxed-code/laravel-scout-elasticsearch )
5+ [ ![ Tests ] ( https://github .com/boxed-code/laravel-scout-elasticsearch/actions/workflows/run_tests.yml/badge. svg )] ( https://github .com/boxed-code/laravel-scout-elasticsearch/actions/workflows/run_tests.yml )
66
77A basic [ elastic] ( https://www.elastic.co/products/elasticsearch ) search backed driver [ for Laravel Scout] ( https://laravel.com/docs/6.0/scout ) .
88
Original file line number Diff line number Diff line change 1010 }
1111 ],
1212 "require" : {
13- "php" : " >=7 .0" ,
13+ "php" : " ^7.2|^8 .0" ,
1414 "laravel/scout" : " ^8.0|^9.0" ,
1515 "elasticsearch/elasticsearch" : " ^5.0|^6.0"
1616 },
1717 "require-dev" : {
18- "mockery/mockery" : " ~1.0 " ,
19- "phpunit/phpunit" : " ~7.5|~8.5|~ 9.3"
18+ "mockery/mockery" : " ~1.3.3 " ,
19+ "phpunit/phpunit" : " ^8.0|^ 9.3"
2020 },
2121 "autoload" : {
2222 "psr-4" : {
You can’t perform that action at this time.
0 commit comments