Skip to content

Commit

Permalink
🚀 Ready for Kirby 4
Browse files Browse the repository at this point in the history
Signed-off-by: bnomei <[email protected]>
  • Loading branch information
bnomei committed Oct 22, 2023
1 parent 10e8a62 commit 9544048
Show file tree
Hide file tree
Showing 39 changed files with 5,322 additions and 2,088 deletions.
24 changes: 7 additions & 17 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,25 +1,15 @@
[*.{css,scss,less,js,json,ts,sass,html,hbs,mustache,phtml,html.twig,md,yml}]
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 4
trim_trailing_whitespace = true
insert_final_newline = true

[*.md, *.txt]
indent_size = 4
[*.md]
trim_trailing_whitespace = false

[site/templates/**.php]
[*.{yml,yaml}]
indent_size = 2

[site/snippets/**.php]
indent_size = 2

[package.json,.{babelrc,editorconfig,eslintrc,lintstagedrc,stylelintrc}]
indent_style = space
indent_size = 2

[composer.json]
indent_size = 4
9 changes: 2 additions & 7 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
# Auto detect text files and perform LF normalization
* text=auto

/docs export-ignore
/tests export-ignore
/.github export-ignore
/.gitattributes export-ignore
/.coveralls.yml export-ignore
/.php-cs-fixer.dist.php export-ignore
/.gitignore export-ignore
/.travis.yml export-ignore
/.* export-ignore
/phpunit.xml export-ignore
/phpstan.neon.dist 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
26 changes: 26 additions & 0 deletions .github/workflows/pest-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
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
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.

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

This file was deleted.

10 changes: 1 addition & 9 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
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
![Release](https://flat.badgen.net/packagist/v/bnomei/autoloader-for-kirby?color=ae81ff)
![Downloads](https://flat.badgen.net/packagist/dt/bnomei/autoloader-for-kirby?color=272822)
[![Build Status](https://flat.badgen.net/travis/bnomei/autoloader-for-kirby)](https://travis-ci.com/bnomei/autoloader-for-kirby)
[![Coverage Status](https://flat.badgen.net/coveralls/c/github/bnomei/autoloader-for-kirby)](https://coveralls.io/github/bnomei/autoloader-for-kirby)
[![Maintainability](https://flat.badgen.net/codeclimate/maintainability/bnomei/autoloader-for-kirby)](https://codeclimate.com/github/bnomei/autoloader-for-kirby)
[![Twitter](https://flat.badgen.net/badge/twitter/bnomei?color=66d9ef)](https://twitter.com/bnomei)

Expand Down
Loading

0 comments on commit 9544048

Please sign in to comment.