Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
## Description
<!-- Describe the problem that this pull request solves, or the feature it adds. -->

## Changes Made
<!-- Provide a detailed view of what you've changed. -->
-
-

## Checklist
- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my own code
- [ ] I have made corresponding changes to the documentation
- [ ] I have added tests that prove my fix is effective or that my feature works
- [ ] New and existing unit tests pass locally with my changes

## Related Issues
<!-- Link any related issues or discussions here -->
Fixes #
27 changes: 27 additions & 0 deletions .github/workflows/code-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Code Analysis

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
analysis:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
tools: composer:v2, pint

- name: Install dependencies
run: composer install --prefer-dist --no-interaction --no-progress

- name: Check code styling (Laravel Pint)
run: pint --test
51 changes: 51 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Tests

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
test:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
php: ['8.2', '8.3', '8.4']
laravel: ['10.*', '11.*', '12.*', '13.*']
stability: [prefer-lowest, prefer-stable]
exclude:
# Laravel 10 is NOT compatible with PHP 8.4
- php: '8.4'
laravel: '10.*'
# Laravel 13 requires PHP ^8.3
- php: '8.2'
laravel: '13.*'

name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }}

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, intl, fileinfo
coverage: none

- name: Setup problem matchers
run: |
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"

- name: Install dependencies
run: |
composer require "illuminate/support:${{ matrix.laravel }}" --no-interaction --no-update
composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress

- name: Execute tests
run: vendor/bin/pest
35 changes: 35 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# ── Composer ──────────────────────────────────────────────────────────────────
/vendor/
composer.lock
composer.phar

# ── PHPUnit / Pest ────────────────────────────────────────────────────────────
.phpunit.result.cache
.phpunit.cache/
coverage/
.pest/

# ── IDE & Editor ──────────────────────────────────────────────────────────────
.idea/
.vscode/
*.sublime-project
*.sublime-workspace
.DS_Store
Thumbs.db

# ── Environment ───────────────────────────────────────────────────────────────
.env
.env.*
!.env.example

# ── Build / Cache artefacts ───────────────────────────────────────────────────
/node_modules/
npm-debug.log*
yarn-error.log
*.log

# ── OS artefacts ──────────────────────────────────────────────────────────────
*.swp
*.swo
*~

Loading
Loading