File tree Expand file tree Collapse file tree 2 files changed +41
-1
lines changed Expand file tree Collapse file tree 2 files changed +41
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : Continuous Integration
2
+
3
+ on : ['push', 'pull_request']
4
+
5
+ jobs :
6
+ ci :
7
+ runs-on : ubuntu-latest
8
+
9
+ strategy :
10
+ matrix :
11
+ php : [7.2, 7.3, 7.4]
12
+ dependency-version : [prefer-lowest, prefer-stable]
13
+
14
+ name : CI - PHP ${{ matrix.php }} (${{ matrix.dependency-version }})
15
+
16
+ steps :
17
+
18
+ - name : Checkout
19
+ uses : actions/checkout@v2
20
+
21
+ - name : Cache dependencies
22
+ uses : actions/cache@v1
23
+ with :
24
+ path : ~/.composer/cache/files
25
+ key : dependencies-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
26
+
27
+ - name : Setup PHP
28
+ uses : shivammathur/setup-php@v2
29
+ with :
30
+ php-version : ${{ matrix.php }}
31
+ extensions : mbstring, zip
32
+ tools : prestissimo
33
+ coverage : pcov
34
+
35
+ - name : Install Composer dependencies
36
+ run : composer update --${{ matrix.dependency-version }} --no-interaction --prefer-dist --no-suggest
37
+
38
+ - name : PHPUnit Testing
39
+ run : vendor/bin/phpunit --coverage-text --coverage-clover=coverage.xml
40
+
Original file line number Diff line number Diff line change 3
3
</p >
4
4
5
5
<p align =" center " >
6
- <a href =" https://travis-ci.org /laravel-zero/framework " ><img src =" https://img.shields.io/travis/ laravel-zero/framework/stable .svg " alt =" Build Status " ></img ></a >
6
+ <a href =" https://github.com /laravel-zero/framework/actions " ><img src =" https://img.shields.io/github/workflow/status/ laravel-zero/framework/Continuous%20Integration .svg " alt =" Build Status " ></img ></a >
7
7
<a href =" https://scrutinizer-ci.com/g/laravel-zero/framework " ><img src =" https://img.shields.io/scrutinizer/g/laravel-zero/framework.svg " alt =" Quality Score " ></img ></a >
8
8
<a href =" https://packagist.org/packages/laravel-zero/framework " ><img src =" https://poser.pugx.org/laravel-zero/framework/d/total.svg " alt =" Total Downloads " ></a >
9
9
<a href =" https://packagist.org/packages/laravel-zero/framework " ><img src =" https://poser.pugx.org/laravel-zero/framework/v/stable.svg " alt =" Latest Stable Version " ></a >
You can’t perform that action at this time.
0 commit comments