Skip to content

Commit ad1ad5d

Browse files
author
nejc
committed
add github actions for Laravel 8.4, 12, Pint, PHPStan; update README; require PHP 8.3+
1 parent d0ff36c commit ad1ad5d

File tree

7,232 files changed

+894386
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

7,232 files changed

+894386
-2
lines changed

.github/workflows/ci.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ Master, master, main ]
6+
pull_request:
7+
branches: [ Master, master, main ]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
php-version: [8.1, 8.2, 8.3]
15+
laravel-version: [8.4.*, 12.*]
16+
name: PHP ${{ matrix.php-version }} - Laravel ${{ matrix.laravel-version }}
17+
steps:
18+
- uses: actions/checkout@v4
19+
- name: Setup PHP
20+
uses: shivammathur/setup-php@v2
21+
with:
22+
php-version: ${{ matrix.php-version }}
23+
extensions: mbstring, xml, ctype, json, tokenizer, bcmath
24+
coverage: none
25+
- name: Install dependencies
26+
run: |
27+
composer require "laravel/framework:${{ matrix.laravel-version }}" --no-interaction --no-update
28+
composer update --prefer-dist --no-interaction --no-progress
29+
- name: Run Pint (Code Style)
30+
run: composer pint --test
31+
- name: Run PHPStan (Static Analysis)
32+
run: composer phpstan
33+
- name: Run Tests
34+
run: composer test

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,22 @@ composer require laravelplus/repository-pattern
2626
composer test
2727
```
2828

29+
### Code Style: Pint
30+
31+
This package uses [Laravel Pint](https://laravel.com/docs/10.x/pint) for code style fixing. To automatically fix code style issues, run:
32+
33+
```bash
34+
composer pint
35+
```
36+
37+
### Static Analysis: PHPStan
38+
39+
This package uses [PHPStan](https://phpstan.org/) for static analysis. To run PHPStan, use:
40+
41+
```bash
42+
composer phpstan
43+
```
44+
2945
### Changelog
3046

3147
Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

composer.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,14 @@
1616
}
1717
],
1818
"require": {
19-
"php": "^7.4|^8.0",
20-
"illuminate/support": "^8.0"
19+
"php": "^8.3",
20+
"illuminate/support": "^8.0",
21+
"nejcc/php-datatypes": "^1.0"
2122
},
2223
"require-dev": {
24+
"laravel/pint": "^1.22",
2325
"orchestra/testbench": "^6.0",
26+
"phpstan/phpstan": "^2.1",
2427
"phpunit/phpunit": "^9.0"
2528
},
2629
"autoload": {

0 commit comments

Comments
 (0)