Skip to content

Commit

Permalink
🚀 v5
Browse files Browse the repository at this point in the history
Signed-off-by: Bruno Meilick <[email protected]>
  • Loading branch information
bnomei committed Nov 27, 2024
1 parent 509d81f commit bc065aa
Show file tree
Hide file tree
Showing 55 changed files with 7,067 additions and 2,118 deletions.
4 changes: 0 additions & 4 deletions .coveralls.yml

This file was deleted.

20 changes: 13 additions & 7 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
# Auto detect text files and perform LF normalization
* text=auto

/*-lock.json export-ignore
/.* export-ignore
/docker-compose.yml export-ignore
/docs export-ignore
/tests export-ignore
/.github export-ignore
/.gitattributes export-ignore
/.coveralls.yml export-ignore
/.php_cs.dist export-ignore
/.gitignore export-ignore
/.travis.yml 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
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/[email protected]
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.

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.

Loading

0 comments on commit bc065aa

Please sign in to comment.