File tree Expand file tree Collapse file tree 8 files changed +1237
-437
lines changed Expand file tree Collapse file tree 8 files changed +1237
-437
lines changed Original file line number Diff line number Diff line change 1+ name : Tests
2+
3+ on :
4+ push :
5+ branches : [ main, master ]
6+ pull_request :
7+ branches : [ main, master ]
8+
9+ jobs :
10+ test :
11+ runs-on : ubuntu-latest
12+
13+ strategy :
14+ fail-fast : false
15+ matrix :
16+ php-version : ['8.3']
17+
18+ steps :
19+ - name : Checkout code
20+ uses : actions/checkout@v4
21+
22+ - name : Setup PHP
23+ uses : shivammathur/setup-php@v2
24+ with :
25+ php-version : ${{ matrix.php-version }}
26+ extensions : gd, hash
27+ coverage : none
28+
29+ - name : Validate composer.json and composer.lock
30+ run : composer validate --strict
31+
32+ - name : Cache Composer packages
33+ id : composer-cache
34+ uses : actions/cache@v4
35+ with :
36+ path : vendor
37+ key : ${{ runner.os }}-php-${{ matrix.php-version }}-${{ hashFiles('**/composer.lock') }}
38+ restore-keys : |
39+ ${{ runner.os }}-php-${{ matrix.php-version }}-
40+
41+ - name : Install dependencies
42+ run : composer install --prefer-dist --no-progress
43+
44+ - name : Run test suite
45+ run : vendor/bin/phpunit
Original file line number Diff line number Diff line change 11vendor /
22build /
3+ .phpunit.cache /
4+ composer.lock
Original file line number Diff line number Diff line change 1717 "wiki" : " https://github.com/bensquire/php-color-extractor/wiki"
1818 },
1919 "require" : {
20- "php" : " >=5.6.0 " ,
21- "ext-hash " : " *"
20+ "php" : " ^8.3 || ^8.4 " ,
21+ "ext-gd " : " *"
2222 },
2323 "require-dev" : {
24- "phpunit/phpunit" : " 5.* "
24+ "phpunit/phpunit" : " ^11.0 "
2525 },
2626 "autoload" : {
27- "psr-0 " : {
28- "PHPColorExtractor" : " src/"
27+ "psr-4 " : {
28+ "PHPColorExtractor\\ " : " src/PHPColorExtractor /"
2929 }
3030 }
3131}
You can’t perform that action at this time.
0 commit comments