Skip to content

Commit

Permalink
🚀 v5
Browse files Browse the repository at this point in the history
Signed-off-by: Bruno Meilick <b@bnomei.com>
  • Loading branch information
bnomei committed Nov 29, 2024
1 parent b076cdd commit fec2ccb
Show file tree
Hide file tree
Showing 31 changed files with 6,492 additions and 2,565 deletions.
4 changes: 0 additions & 4 deletions .coveralls.yml

This file was deleted.

14 changes: 12 additions & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
/tests export-ignore
# Auto detect text files and perform LF normalization
* text=auto

/*-lock.json export-ignore
/.* export-ignore
/docker-compose.yml export-ignore
/docs export-ignore
/examples export-ignore
/package.json export-ignore
/phpstan.neon.dist export-ignore
/phpunit.xml export-ignore
/*.lock 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/laravel-pint-action@2.3.0

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

on:
workflow_dispatch:
push:
paths:
- "**.php"
- "composer.lock"
pull_request:
paths:
- "**.php"
- "composer.lock"

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: Cache composer dependencies
uses: actions/cache@v4
with:
path: vendor
key: composer-${{ hashFiles('composer.lock') }}

- name: Install
run: composer kirby

- name: Test & publish code coverage
uses: paambaati/codeclimate-action@v8.0.0
with:
coverageCommand: vendor/bin/pest --ci
coverageLocations: ${{github.workspace}}/tests/clover.xml:clover
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}

34 changes: 34 additions & 0 deletions .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
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: Cache composer dependencies
uses: actions/cache@v4
with:
path: vendor
key: composer-${{ hashFiles('composer.lock') }}

- name: Install
run: composer kirby

- name: Run PHPStan
run: vendor/bin/phpstan --error-format=github
34 changes: 0 additions & 34 deletions .github/workflows/test.yml

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
/tests/media
/tests/site/accounts
/tests/site/cache
/tests/site/logs
/tests/site/sessions

# files of Composer dependencies that are not needed for the plugin
Expand Down
19 changes: 0 additions & 19 deletions .php-cs-fixer.dist.php

This file was deleted.

14 changes: 0 additions & 14 deletions .travis.yml

This file was deleted.

1 change: 0 additions & 1 deletion .valetrc

This file was deleted.

Loading

0 comments on commit fec2ccb

Please sign in to comment.