Skip to content

Commit b4d62a0

Browse files
committed
update
1 parent 754e9db commit b4d62a0

File tree

7 files changed

+53
-2511
lines changed

7 files changed

+53
-2511
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: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,32 @@
11
name: PHP CI
22

33
on:
4-
- push
5-
- pull_request
4+
pull_request:
5+
branches:
6+
- 'main'
7+
push:
8+
branches:
9+
- 'main'
610

711
jobs:
812
build:
913
runs-on: ubuntu-latest
10-
11-
strategy:
12-
matrix:
13-
php-versions: ['7.4', '8.1']
14-
1514
steps:
16-
- uses: actions/checkout@v2
15+
- uses: actions/checkout@v5
1716

18-
- name: Set up PHP ${{ matrix.php-versions }}
17+
- name: Setup PHP
1918
uses: shivammathur/setup-php@v2
2019
with:
21-
php-version: ${{ matrix.php-versions }}
20+
php-version: '8.4'
21+
22+
- name: PHP Security Checker
23+
uses: StephaneBour/[email protected]
2224

23-
- name: Install
24-
run: make install
25+
- name: Setup project
26+
run: make setup
2527

2628
- name: Check lint
2729
run: make lint
2830

29-
- name: Execute tests
31+
- name: Execute tests via PHPUnit
3032
run: make test

.gitignore

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

Makefile

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

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

77
lint:
8-
composer run-script phpcs -- --standard=PSR12 src tests
8+
composer exec phpcs -- --standard=PSR12 src tests

composer.json

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,16 @@
1010
}
1111
],
1212
"require": {
13-
"php": ">=7.4 || >=8.1",
14-
"tightenco/collect": "^8.79"
15-
},
16-
"scripts": {
17-
"phpcs": "phpcs",
18-
"phpunit": "phpunit --colors=always",
19-
"test": "phpunit tests"
13+
"php": ">=8.3",
14+
"illuminate/collections": "^12"
2015
},
2116
"autoload": {
2217
"files": [
2318
"src/graphs.php"
2419
]
2520
},
2621
"require-dev": {
27-
"phpunit/phpunit": "^9.5",
28-
"squizlabs/php_codesniffer": "^3.6"
22+
"phpunit/phpunit": "^12",
23+
"squizlabs/php_codesniffer": "*"
2924
}
3025
}

0 commit comments

Comments
 (0)