Skip to content

Commit 98c1dd5

Browse files
committed
update
1 parent 60e9bf2 commit 98c1dd5

File tree

6 files changed

+49
-2192
lines changed

6 files changed

+49
-2192
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 -- --colors=always 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

0 commit comments

Comments
 (0)