Skip to content

Commit b4fe6a2

Browse files
committed
🚀 v5
Signed-off-by: Bruno Meilick <[email protected]>
1 parent bd4f39c commit b4fe6a2

33 files changed

+6702
-2880
lines changed

.coveralls.yml

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

.editorconfig

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,15 @@
1-
[*.{css,scss,less,js,json,ts,sass,html,hbs,mustache,phtml,html.twig,md,yml}]
1+
root = true
2+
3+
[*]
24
charset = utf-8
3-
indent_style = space
4-
indent_size = 2
55
end_of_line = lf
66
insert_final_newline = true
7+
indent_style = space
8+
indent_size = 4
79
trim_trailing_whitespace = true
8-
insert_final_newline = true
910

1011
[*.md]
11-
indent_size = 4
1212
trim_trailing_whitespace = false
1313

14-
[site/templates/**.php]
15-
indent_size = 2
16-
17-
[site/snippets/**.php]
18-
indent_size = 2
19-
20-
[package.json,.{babelrc,editorconfig,eslintrc,lintstagedrc,stylelintrc}]
21-
indent_style = space
14+
[*.{yml,yaml}]
2215
indent_size = 2

.gitattributes

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto
3+
4+
/*-lock.json export-ignore
5+
/.* export-ignore
6+
/docker-compose.yml export-ignore
17
/docs export-ignore
2-
/tests export-ignore
3-
/.github export-ignore
4-
/.gitattributes export-ignore
5-
/.coveralls.yml export-ignore
6-
/.php_cs.dist export-ignore
7-
/.gitignore export-ignore
8-
/.travis.yml export-ignore
8+
/examples export-ignore
9+
/package.json export-ignore
10+
/phpstan.neon.dist export-ignore
911
/phpunit.xml export-ignore
12+
/ray.php export-ignore
13+
/pint.json export-ignore
14+
/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: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Pest Tests
2+
3+
on:
4+
push:
5+
paths:
6+
- "**.php"
7+
- "composer.lock"
8+
pull_request:
9+
paths:
10+
- "**.php"
11+
- "composer.lock"
12+
13+
jobs:
14+
test:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v4
20+
21+
- name: Setup PHP
22+
uses: shivammathur/setup-php@v2
23+
with:
24+
php-version: 8.2
25+
tools: composer:v2
26+
coverage: none
27+
28+
- name: Cache composer dependencies
29+
uses: actions/cache@v4
30+
with:
31+
path: vendor
32+
key: composer-${{ hashFiles('composer.lock') }}
33+
34+
- name: Install
35+
run: composer kirby
36+
37+
- name: PEST
38+
run: vendor/bin/pest --ci

.github/workflows/phpstan.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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: Cache composer dependencies
25+
uses: actions/cache@v4
26+
with:
27+
path: vendor
28+
key: composer-${{ hashFiles('composer.lock') }}
29+
30+
- name: Install
31+
run: composer kirby
32+
33+
- name: Run PHPStan
34+
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 & 19 deletions
This file was deleted.

.travis.yml

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

0 commit comments

Comments
 (0)