Skip to content

Commit 8d1b887

Browse files
committed
🚀 v5
1 parent 9dd5a21 commit 8d1b887

32 files changed

+6334
-2360
lines changed

.coveralls.yml

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

.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: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Pest Tests
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
paths:
7+
- "**.php"
8+
- "composer.lock"
9+
pull_request:
10+
paths:
11+
- "**.php"
12+
- "composer.lock"
13+
14+
jobs:
15+
test:
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v4
21+
22+
- name: Setup PHP
23+
uses: shivammathur/setup-php@v2
24+
with:
25+
php-version: 8.2
26+
tools: composer:v2
27+
coverage: xdebug
28+
29+
- name: Cache composer dependencies
30+
uses: actions/cache@v4
31+
with:
32+
path: vendor
33+
key: composer-${{ hashFiles('composer.lock') }}
34+
35+
- name: Install
36+
run: composer kirby
37+
38+
- name: Test & publish code coverage
39+
uses: paambaati/[email protected]
40+
with:
41+
coverageCommand: vendor/bin/pest --ci
42+
coverageLocations: ${{github.workspace}}/tests/clover.xml:clover
43+
env:
44+
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
45+

.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)