Skip to content

Commit 60491ec

Browse files
committed
cleanup for wondernetwork/php-collection-library
1 parent 3714e64 commit 60491ec

14 files changed

+2783
-1324
lines changed

Diff for: .github/workflows/ci.yml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Test
2+
3+
on: [push]
4+
5+
permissions:
6+
contents: read
7+
8+
jobs:
9+
build:
10+
strategy:
11+
matrix:
12+
php_version: ['8.3']
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Setup PHP
18+
uses: shivammathur/setup-php@v2
19+
with:
20+
php-version: ${{ matrix.php_version }}
21+
- name: Get composer cache directory
22+
id: composer-cache
23+
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
24+
- name: Cache dependencies
25+
uses: actions/cache@v4
26+
with:
27+
path: ${{ steps.composer-cache.outputs.dir }}
28+
key: ${{ runner.os }}-composer-${{ matrix.php_version }}-${{ hashFiles('**/composer.lock') }}
29+
restore-keys: ${{ runner.os }}-composer-${{ matrix.php_version }}-
30+
31+
- name: Install dependencies
32+
run: composer install
33+
- name: PHPSpec
34+
run: vendor/bin/phpspec run
35+
- name: PHPUnit
36+
run: vendor/bin/phpunit

Diff for: .gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ coverage.clover
55
coverage.xml
66

77
phpunit.xml
8+
.phpunit.cache
9+

Diff for: composer.json

+17-8
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,38 @@
11
{
2-
"name": "martinvenus/knapsack",
2+
"name": "wondernetwork/php-collection-library",
33
"license": "MIT",
44
"type": "library",
55
"description": "Collection library for PHP",
66
"keywords": ["collections","sequences", "map", "reduce"],
7-
"homepage": "https://github.com/DusanKasan/Knapsack",
7+
"homepage": "https://github.com/WonderNetwork/php-collection-library",
88
"authors": [
99
{
1010
"name": "Dusan Kasan",
1111
"email": "[email protected]",
1212
"homepage": "http://kasan.sk",
1313
"role": "Developer"
14+
},
15+
{
16+
"name": "Martin Venuš",
17+
"homepage": "https://github.com/martinvenus"
18+
},
19+
{
20+
"name": "Maciej Łebkowski",
21+
"homepage": "https://github.com/mlebkowski"
1422
}
1523
],
1624
"require-dev": {
17-
"phpspec/phpspec": "^3.4",
18-
"henrikbjorn/phpspec-code-coverage": "^3.0",
25+
"ext-dom": "*",
1926
"squizlabs/php_codesniffer": "^3.4",
2027
"phpmd/phpmd" : "^2.0",
21-
"ciaranmcnulty/phpspec-typehintedmethods": "^2.0",
22-
"phpunit/phpunit": "^5.7",
23-
"symfony/console": "^2.7"
28+
"phpspec/phpspec": "^7",
29+
"phpunit/phpunit": "^10.5"
2430
},
2531
"require": {
26-
"php": ">=5.6.0"
32+
"php": ">=8.3"
33+
},
34+
"replace": {
35+
"dusank/knapsack": "self.version"
2736
},
2837
"autoload": {
2938
"files": [

0 commit comments

Comments
 (0)