This repository was archived by the owner on May 2, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +43
-23
lines changed
Expand file tree Collapse file tree 3 files changed +43
-23
lines changed Original file line number Diff line number Diff line change 1+ name : tests
2+
3+ on :
4+ push :
5+ branches : [ 2.x, master ]
6+ pull_request :
7+ branches : [ 2.x, master ]
8+
9+ jobs :
10+ tests :
11+ strategy :
12+ matrix :
13+ php-versions : ['7.3', '7.4']
14+
15+ runs-on : ubuntu-latest
16+
17+ steps :
18+ - name : Checkout
19+ uses : actions/checkout@v2
20+
21+ - name : Setup PHP
22+ uses : shivammathur/setup-php@v2
23+ with :
24+ php-version : ${{ matrix.php-versions }}
25+
26+ - name : Cache Composer packages
27+ id : composer-cache
28+ uses : actions/cache@v2
29+ with :
30+ path : vendor
31+ key : ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
32+ restore-keys : |
33+ ${{ runner.os }}-php-
34+
35+ - name : Install dependencies
36+ uses : php-actions/composer@v6
37+ with :
38+ version : 2
39+ php_version : ${{ matrix.php-versions }}
40+
41+ - name : Run test suite
42+ run : vendor/bin/phpunit
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 22
33Ported from [ node-semver 1.1.2] ( https://github.com/isaacs/node-semver/tree/v1.1.2 ) to PHP
44
5- [ ![ Build Status] ( https://secure.travis-ci.org /vierbergenlars/php-semver.png?branch=master )] ( http ://travis-ci.org /vierbergenlars/php-semver)
5+ [ ![ Build Status] ( https://github.com /vierbergenlars/php-semver/actions/workflows/tests.yml/badge.svg )] ( https ://github.com /vierbergenlars/php-semver/actions/workflows/tests.yml )
66[ ![ Scrutinizer Quality Score] ( https://scrutinizer-ci.com/g/vierbergenlars/php-semver/badges/quality-score.png?s=89ff49019cde97e70228ae14d2dc08b727e72157 )] ( https://scrutinizer-ci.com/g/vierbergenlars/php-semver/ )
77[ ![ Latest Stable Version] ( https://poser.pugx.org/vierbergenlars/php-semver/v/stable.png )] ( https://packagist.org/packages/vierbergenlars/php-semver )
88[ ![ Total Downloads] ( https://poser.pugx.org/vierbergenlars/php-semver/downloads.png )] ( https://packagist.org/packages/vierbergenlars/php-semver )
You can’t perform that action at this time.
0 commit comments