Skip to content

Commit

Permalink
🚀 k4 version
Browse files Browse the repository at this point in the history
Signed-off-by: bnomei <[email protected]>
  • Loading branch information
bnomei committed Nov 5, 2023
1 parent 6fdc3d8 commit 4ff244d
Show file tree
Hide file tree
Showing 55 changed files with 7,579 additions and 3,382 deletions.
19 changes: 5 additions & 14 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,24 +1,15 @@
# This file is for unifying the coding style for different editors and IDEs
# editorconfig.org

# PHP PSR-12 Coding Standards
# https://www.php-fig.org/psr/psr-12/

root = true

[*]
charset = utf-8
end_of_line = lf
indent_style = tab
indent_size = 2
trim_trailing_whitespace = true

[*.php]
indent_size = 4
insert_final_newline = true

[*.yml]
indent_style = space
indent_size = 4
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false

[*.{yml,yaml}]
indent_size = 2
3 changes: 3 additions & 0 deletions .gitattributes
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
/docs export-ignore
/examples export-ignore
/package.json export-ignore
/phpstan.neon.dist export-ignore
/phpunit.xml export-ignore
/ray.php export-ignore
/pint.json export-ignore
/tests export-ignore
/collections/example_*.php export-ignore
24 changes: 24 additions & 0 deletions .github/workflows/fix-php-code-style-issues.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Fix PHP code style issues

on:
push:
paths:
- '**.php'

jobs:
php-code-styling:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}

- name: Fix PHP code style issues
uses: aglipanci/[email protected]

- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Fix styling
27 changes: 27 additions & 0 deletions .github/workflows/pest-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Pest Tests

on: ['push', 'pull_request']

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
tools: composer:v2
coverage: xdebug

- name: Install
run: composer install --no-interaction --prefer-dist --optimize-autoloader

- name: Run Tests
run: |
php tests/patch.php
./vendor/bin/pest --group=SetupPagesInSeparatePHPUnitRun
./vendor/bin/pest
29 changes: 29 additions & 0 deletions .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: PHPStan

on:
push:
paths:
- '**.php'
- 'phpstan.neon.dist'

jobs:
phpstan:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
tools: composer:v2
coverage: none

- name: Install
run: |
composer install --no-interaction --prefer-dist --optimize-autoloader
- name: Run PHPStan
run: ./vendor/bin/phpstan --error-format=github
34 changes: 0 additions & 34 deletions .github/workflows/test.yml

This file was deleted.

61 changes: 0 additions & 61 deletions .php-cs-fixer.dist.php

This file was deleted.

14 changes: 3 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
language: php
php: 8.0
php: 8.2
matrix:
fast_finish: true
install: composer install --no-interaction
script: composer test
after_success: travis_retry php vendor/bin/php-coveralls -v
notifications:
webhooks:
on_success: change
on_failure: always
on_start: never
urls:
- https://webhooks.gitter.im/e/77d9949056dc0462d25d
install: composer install --no-interaction --prefer-dist --optimize-autoloader
script: ./vendor/bin/pest
Loading

0 comments on commit 4ff244d

Please sign in to comment.