Skip to content

Commit 4ff244d

Browse files
committed
🚀 k4 version
Signed-off-by: bnomei <[email protected]>
1 parent 6fdc3d8 commit 4ff244d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+7579
-3382
lines changed

.editorconfig

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,15 @@
1-
# This file is for unifying the coding style for different editors and IDEs
2-
# editorconfig.org
3-
4-
# PHP PSR-12 Coding Standards
5-
# https://www.php-fig.org/psr/psr-12/
6-
71
root = true
82

93
[*]
104
charset = utf-8
115
end_of_line = lf
12-
indent_style = tab
13-
indent_size = 2
14-
trim_trailing_whitespace = true
15-
16-
[*.php]
17-
indent_size = 4
186
insert_final_newline = true
19-
20-
[*.yml]
217
indent_style = space
8+
indent_size = 4
9+
trim_trailing_whitespace = true
2210

2311
[*.md]
2412
trim_trailing_whitespace = false
13+
14+
[*.{yml,yaml}]
15+
indent_size = 2

.gitattributes

100755100644
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
/docs export-ignore
88
/examples export-ignore
99
/package.json export-ignore
10+
/phpstan.neon.dist export-ignore
1011
/phpunit.xml export-ignore
1112
/ray.php export-ignore
13+
/pint.json export-ignore
1214
/tests export-ignore
15+
/collections/example_*.php export-ignore
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Fix PHP code style issues
2+
3+
on:
4+
push:
5+
paths:
6+
- '**.php'
7+
8+
jobs:
9+
php-code-styling:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
with:
16+
ref: ${{ github.head_ref }}
17+
18+
- name: Fix PHP code style issues
19+
uses: aglipanci/[email protected]
20+
21+
- name: Commit changes
22+
uses: stefanzweifel/git-auto-commit-action@v4
23+
with:
24+
commit_message: Fix styling

.github/workflows/pest-tests.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Pest Tests
2+
3+
on: ['push', 'pull_request']
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v4
12+
13+
- name: Setup PHP
14+
uses: shivammathur/setup-php@v2
15+
with:
16+
php-version: 8.2
17+
tools: composer:v2
18+
coverage: xdebug
19+
20+
- name: Install
21+
run: composer install --no-interaction --prefer-dist --optimize-autoloader
22+
23+
- name: Run Tests
24+
run: |
25+
php tests/patch.php
26+
./vendor/bin/pest --group=SetupPagesInSeparatePHPUnitRun
27+
./vendor/bin/pest

.github/workflows/phpstan.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: PHPStan
2+
3+
on:
4+
push:
5+
paths:
6+
- '**.php'
7+
- 'phpstan.neon.dist'
8+
9+
jobs:
10+
phpstan:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
17+
- name: Setup PHP
18+
uses: shivammathur/setup-php@v2
19+
with:
20+
php-version: 8.2
21+
tools: composer:v2
22+
coverage: none
23+
24+
- name: Install
25+
run: |
26+
composer install --no-interaction --prefer-dist --optimize-autoloader
27+
28+
- name: Run PHPStan
29+
run: ./vendor/bin/phpstan --error-format=github

.github/workflows/test.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.

.php-cs-fixer.dist.php

Lines changed: 0 additions & 61 deletions
This file was deleted.

.travis.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,6 @@
11
language: php
2-
php: 8.0
2+
php: 8.2
33
matrix:
44
fast_finish: true
5-
install: composer install --no-interaction
6-
script: composer test
7-
after_success: travis_retry php vendor/bin/php-coveralls -v
8-
notifications:
9-
webhooks:
10-
on_success: change
11-
on_failure: always
12-
on_start: never
13-
urls:
14-
- https://webhooks.gitter.im/e/77d9949056dc0462d25d
5+
install: composer install --no-interaction --prefer-dist --optimize-autoloader
6+
script: ./vendor/bin/pest

0 commit comments

Comments
 (0)