File tree Expand file tree Collapse file tree 2 files changed +48
-1
lines changed
Expand file tree Collapse file tree 2 files changed +48
-1
lines changed Original file line number Diff line number Diff line change 1+ name : build
2+ on : [push, pull_request]
3+ jobs :
4+ build :
5+ runs-on :
6+ - ubuntu-latest
7+ strategy :
8+ matrix :
9+ php : ['7.1', '7.2', '7.3', '7.4']
10+ steps :
11+ - name : Configure Git
12+ if : ${{ matrix.os == 'windows-latest' }}
13+ run : |
14+ git config --system core.autocrlf false
15+ git config --ystem core.eol lf
16+
17+ - name : Checkout
18+ uses : actions/checkout@v2
19+
20+ - name : Setup PHP
21+ uses : shivammathur/setup-php@v2
22+ with :
23+ php-version : ${{ matrix.php }}
24+ extensions : json
25+ tools : composer
26+ coverage : xdebug
27+
28+ - name : Get Composer cache directory
29+ id : composercache
30+ run : echo "::set-output name=dir::$(composer config cache-files-dir)"
31+
32+ - name : Cache Composer dependencies
33+ uses : actions/cache@v2
34+ with :
35+ path : ${{ steps.composercache.outputs.dir }}
36+ key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
37+ restore-keys : ${{ runner.os }}-composer-
38+
39+ - name : Install dependencies
40+ run : composer install --no-interaction --prefer-dist --no-progress --no-suggest ${{ matrix.composer-options }}
41+
42+ - name : Analyze & test
43+ run : |
44+ vendor/bin/phpunit -v --configuration ./phpunit.xml.dist --coverage-clover=coverage.xml
45+
46+ - name : Run codecov
47+ uses : codecov/codecov-action@v1
Original file line number Diff line number Diff line change 11Client Library for PHP
22============================
33[ ![ Contributor Covenant] ( https://img.shields.io/badge/Contributor%20Covenant-v2.0%20adopted-ff69b4.svg )] ( CODE_OF_CONDUCT.md )
4- [ ![ Build Status] ( https://api.travis-ci.org/Nexmo /nexmo-php.svg?branch=master )] ( https://travis-ci.org /Nexmo/nexmo-php )
4+ [ ![ Build Status] ( https://github.com/nexmo /nexmo-php/workflows/build/badge .svg?branch=master )] ( https://github.com /Nexmo/nexmo-php/actions?query=workflow%3Abuild )
55[ ![ Latest Stable Version] ( https://poser.pugx.org/nexmo/client/v/stable )] ( https://packagist.org/packages/nexmo/client )
66[ ![ MIT licensed] ( https://img.shields.io/badge/license-MIT-blue.svg )] ( ./LICENSE.txt )
77[ ![ codecov] ( https://codecov.io/gh/Nexmo/nexmo-php/branch/master/graph/badge.svg )] ( https://codecov.io/gh/Nexmo/nexmo-php )
You can’t perform that action at this time.
0 commit comments