File tree Expand file tree Collapse file tree 5 files changed +48
-12
lines changed
Expand file tree Collapse file tree 5 files changed +48
-12
lines changed Original file line number Diff line number Diff line change 2020 run : php ./vendor/phpunit/phpunit/phpunit --coverage-clover=coverage.xml
2121
2222 - name : Upload coverage to Codecov
23- uses : codecov/codecov-action@v1
24- with :
25- file : ./coverage.xml
23+ uses : codecov/codecov-action@v1
Original file line number Diff line number Diff line change 88
99jobs :
1010 build :
11- runs-on : ubuntu-latest
12-
11+ runs-on : ${{ matrix.operating-system }}
12+ strategy :
13+ matrix :
14+ operating-system : [ubuntu-latest, windows-latest]
15+ php-versions : ['7.2', '7.3', '7.4']
1316 steps :
1417 - uses : actions/checkout@v2
1518
19+ - name : Install PHP version
20+ uses : shivammathur/setup-php@v2
21+ with :
22+ php-version : ${{ matrix.php-versions }}
23+ extensions : mbstring
24+
1625 - name : Install dependencies
1726 run : composer install --prefer-dist --no-progress --no-suggest
1827
1928 - name : Test with PHPUnit, generate code coverage
2029 run : php ./vendor/phpunit/phpunit/phpunit --coverage-clover=coverage.xml
2130
2231 - name : Upload coverage to Codecov
23- uses : codecov/codecov-action@v1
24- with :
25- file : ./coverage.xml
32+ uses : codecov/codecov-action@v1
Original file line number Diff line number Diff line change 1+ name : staging
2+
3+ on :
4+ push :
5+ branches : [ staging ]
6+ pull_request :
7+ branches : [ staging ]
8+
9+ jobs :
10+ build :
11+ runs-on : ${{ matrix.operating-system }}
12+ strategy :
13+ matrix :
14+ operating-system : [ubuntu-latest]
15+ php-versions : ['7.2', '7.3', '7.4']
16+ steps :
17+ - uses : actions/checkout@v2
18+
19+ - name : Install PHP
20+ uses : shivammathur/setup-php@v2
21+ with :
22+ php-version : ${{ matrix.php-versions }}
23+
24+ - name : Install dependencies
25+ run : composer install --prefer-dist --no-progress --no-suggest
26+
27+ - name : Test with PHPUnit, generate code coverage
28+ run : php ./vendor/phpunit/phpunit/phpunit --coverage-clover=coverage.xml
29+
30+ - name : Upload coverage to Codecov
31+ uses : codecov/codecov-action@v1
Original file line number Diff line number Diff line change 22
33# National Identification Numbers
44[ ![ php version] ( https://img.shields.io/badge/php-%3E%3D7.2-8892BF.svg?logo=php )] ( https://github.com/vladdeSV/php-nin/blob/develop/composer.json )
5- [ ![ codecov ] ( https://codecov. io/gh/ vladdeSV/php-nin/branch/develop/graph/badge .svg )] ( https://codecov.io/gh /vladdeSV/php-nin )
6- [ ![ styleci ] ( https://github.styleci. io/repos/247304996/shield?style=flat& branch=develop )] ( https://github.styleci. io/repos/247304996 )
7- [ ![ develop ] ( https://github.com/vladdeSV/php-nin/workflows/develop/badge.svg? branch=develop )] ( https://github.com/vladdeSV/php-nin/actions?query=workflow%3Adevelop )
5+ [ ![ latest release ] ( https://img.shields. io/packagist/v/ vladdeSV/php-nin.svg?style=flat )] ( https://packagist.org/packages /vladdeSV/php-nin )
6+ [ ![ codecov ] ( https://codecov. io/gh/vladdeSV/php-nin/ branch/release/graph/badge.svg )] ( https://codecov. io/gh/vladdeSV/php-nin )
7+ [ ![ styleci ] ( https://github.styleci.io/repos/247304996/shield?style=flat& branch=release )] ( https://github.styleci.io/repos/247304996 )
88
99This library validates the structure of individual identification numbers. Currently supporting all Nordic countries.
1010
Original file line number Diff line number Diff line change 11{
22 "name" : " vladdesv/php-nin" ,
3- "description" : " National Identification Number " ,
3+ "description" : " Verify structure of individual national identification numbers " ,
44 "type" : " library" ,
55 "license" : " MIT" ,
66 "authors" : [
You can’t perform that action at this time.
0 commit comments