Skip to content

Commit da0fe81

Browse files
committed
update
1 parent 137f740 commit da0fe81

File tree

8 files changed

+506
-894
lines changed

8 files changed

+506
-894
lines changed

.github/dependabot.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "composer" # See documentation for possible values
9+
directory: "/" # Location of package manifests
10+
schedule:
11+
interval: "weekly"
12+
13+
- package-ecosystem: "github-actions"
14+
directory: "/"
15+
schedule:
16+
# Check for updates to GitHub Actions every week
17+
interval: "weekly"

.github/workflows/phpci.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@ jobs:
1010

1111
strategy:
1212
matrix:
13-
php-versions: ['7.4', '8.1']
14-
13+
php-versions:
14+
- '8.3'
15+
- '8.4'
1516
steps:
16-
- uses: actions/checkout@v2
17+
- uses: actions/checkout@v5
1718

1819
- name: Set up PHP ${{ matrix.php-versions }}
1920
uses: shivammathur/setup-php@v2

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
vendor
22
*.cache
3+
composer.lock

Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@ install:
22
composer install
33

44
test:
5-
composer phpunit tests
5+
composer exec phpunit -- tests
66

77
lint:
8-
composer phpcs src tests
8+
composer exec phpcs -- src tests --colors --standard=PSR12
9+
10+
lint-fix:
11+
composer exec phpcbf -- src tests --colors --standard=PSR12

composer.json

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,23 @@
33
"description": "Lists implementation",
44
"license": "MIT",
55
"keywords": ["lists"],
6-
"scripts": {
7-
"phpunit": "phpunit",
8-
"phpcs": "phpcs"
9-
},
106
"authors": [
117
{
128
"name": "Roman Ashikov",
139
"email": "[email protected]"
1410
}
1511
],
1612
"require": {
17-
"php": ">=7.4 || >=8.1",
18-
"hexlet/pairs": "^1.1"
13+
"php": ">=8.1",
14+
"hexlet/pairs": "dev-main"
1915
},
2016
"autoload": {
2117
"files": [
2218
"src/Lists.php"
2319
]
2420
},
2521
"require-dev": {
26-
"phpunit/phpunit": "^9.5",
27-
"squizlabs/php_codesniffer": "^3.6"
22+
"phpunit/phpunit": "^12",
23+
"squizlabs/php_codesniffer": "*"
2824
}
2925
}

0 commit comments

Comments
 (0)