File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Tests
2+
3+ on :
4+ push :
5+ branches : [main]
6+ pull_request :
7+ branches : [main]
8+
9+ jobs :
10+ test :
11+ runs-on : ubuntu-latest
12+
13+ strategy :
14+ fail-fast : true
15+ matrix :
16+ php : ['8.2', '8.3', '8.4']
17+
18+ name : PHP ${{ matrix.php }}
19+
20+ steps :
21+ - name : Checkout code
22+ uses : actions/checkout@v5
23+
24+ - name : Setup PHP
25+ uses : shivammathur/setup-php@v2
26+ with :
27+ php-version : ${{ matrix.php }}
28+ extensions : mbstring, json, curl
29+ coverage : none
30+
31+ - name : Install dependencies
32+ run : composer update --prefer-dist --no-interaction --no-progress
33+
34+ - name : Check code style
35+ run : vendor/bin/pint --test
36+
37+ - name : Run static analysis
38+ run : vendor/bin/phpstan analyse
39+
40+ - name : Run tests
41+ run : vendor/bin/phpunit
Original file line number Diff line number Diff line change 77[ ![ License] ( https://img.shields.io/packagist/l/pralhadstha/zipcoder-php.svg?style=flat-square )] ( LICENSE )
88[ ![ Total Downloads] ( https://img.shields.io/packagist/dt/pralhadstha/zipcoder-php.svg?style=flat-square )] ( https://packagist.org/packages/pralhadstha/zipcoder-php )
99[ ![ PHPStan Level 9] ( https://img.shields.io/badge/PHPStan-level%209-brightgreen.svg?style=flat-square )] ( https://phpstan.org/ )
10+ [ ![ Tests] ( https://img.shields.io/github/actions/workflow/status/pralhadstha/zipcoder-php/tests.yml?branch=main&label=tests&style=flat-square )] ( https://github.com/pralhadstha/zipcoder-php/actions )
1011
1112---
1213
Original file line number Diff line number Diff line change 3838 "Pralhad\\ Zipcoder\\ Tests\\ " : " tests/"
3939 }
4040 },
41+ "scripts" : {
42+ "test" : " vendor/bin/phpunit" ,
43+ "analyse" : " vendor/bin/phpstan analyse" ,
44+ "format" : " vendor/bin/pint" ,
45+ "check-style" : " vendor/bin/pint --test"
46+ },
4147 "minimum-stability" : " stable" ,
4248 "prefer-stable" : true
4349}
You can’t perform that action at this time.
0 commit comments