Skip to content

Commit 6f9ebb0

Browse files
authored
feat: Laravel 12 (#32)
1 parent 87553f2 commit 6f9ebb0

17 files changed

+159
-305
lines changed

.gitattributes

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
* text=auto
22

3-
/tests export-ignore
43
.github/ export-ignore
4+
/tests export-ignore
55
.editorconfig export-ignore
66
.gitattributes export-ignore
77
.gitignore export-ignore
8-
.php_cs export-ignore
9-
.scrutinizer.yml export-ignore
10-
.travis.yml export-ignore
11-
phpunit.xml export-ignore
8+
CONDUCT.md export-ignore
9+
CONTRIBUTING.md export-ignore
10+
phpstan.neon.dist export-ignore
11+
phpunit.xml.dist export-ignore
12+
pint.json export-ignore
13+
rector.php export-ignore
Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,26 @@
1-
name: "Continuous Integration"
1+
name: Continuous Integration
22

33
on:
44
push:
5+
branches:
6+
- master
7+
- '*.x'
58
pull_request:
69
schedule:
710
- cron: '0 0 * * *'
811

912
jobs:
10-
phpunit:
13+
tests:
1114

1215
runs-on: ubuntu-latest
1316

1417
strategy:
1518
fail-fast: true
1619
matrix:
17-
php: [8.2, 8.3]
20+
php: [8.2, 8.3, 8.4]
1821
stability: [prefer-stable]
1922

20-
name: PHP ${{ matrix.php }} - ${{ matrix.stability }}
23+
name: PHP ${{ matrix.php }} - STABILITY ${{ matrix.stability }}
2124

2225
steps:
2326
- name: Checkout code
@@ -27,19 +30,21 @@ jobs:
2730
uses: shivammathur/setup-php@v2
2831
with:
2932
php-version: ${{ matrix.php }}
30-
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, gd, memcached
3133
tools: composer:v2
3234
coverage: none
3335

3436
- name: Setup Memcached
3537
uses: niden/actions-memcached@v7
3638

39+
- name: Setup problem matchers
40+
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
41+
3742
- name: Install dependencies
3843
uses: nick-invision/retry@v1
3944
with:
4045
timeout_minutes: 5
4146
max_attempts: 5
42-
command: COMPOSER_ROOT_VERSION=dev-master composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress
47+
command: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress
4348

4449
- name: Execute tests
4550
run: vendor/bin/pest

.github/workflows/pint.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,28 @@ on:
44
push:
55
branches:
66
- master
7+
- '*.x'
78
jobs:
8-
phplint:
9+
pint:
10+
name: "Pint"
11+
912
runs-on: ubuntu-latest
13+
14+
permissions:
15+
contents: write
16+
pull-requests: write
17+
1018
steps:
1119
- uses: actions/checkout@v4
20+
with:
21+
ref: ${{ github.head_ref }}
22+
1223
- name: "laravel-pint"
13-
uses: aglipanci/laravel-pint-action@2.0.0
24+
uses: aglipanci/laravel-pint-action@latest
1425
with:
1526
preset: laravel
1627
verboseMode: true
28+
1729
- uses: stefanzweifel/git-auto-commit-action@v5
1830
with:
19-
commit_message: "fix: pint"
20-
31+
commit_message: "fix: pint :robot:"

.github/workflows/static-analysis.yml

Lines changed: 11 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,53 +2,42 @@ name: "Static Analysis"
22

33
on:
44
push:
5-
paths:
6-
- .github/workflows/static-analysis.yml
7-
- composer.*
8-
- phpstan.neon.dist
9-
- src/**
10-
- tests/**
5+
branches:
6+
- master
7+
- '*.x'
118

129
pull_request:
13-
paths:
14-
- .github/workflows/static-analysis.yml
15-
- composer.*
16-
- phpstan.neon.dist
17-
- src/**
18-
- tests/**
1910

2011
schedule:
2112
- cron: '0 0 * * *'
2213

2314
jobs:
2415
static-analysis-phpstan:
2516

26-
name: "Static Analysis with PHPStan"
17+
name: Source Code
2718
runs-on: ubuntu-latest
2819

2920
strategy:
3021
fail-fast: true
31-
matrix:
32-
php: [8.2, 8.3]
33-
stability: [prefer-stable]
3422

3523
steps:
3624
- name: Checkout code
37-
uses: actions/checkout@v2
25+
uses: actions/checkout@v4
3826

3927
- name: Setup PHP
4028
uses: shivammathur/setup-php@v2
4129
with:
42-
php-version: ${{ matrix.php }}
30+
php-version: 8.2
31+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, gd, memcached, oci8
4332
tools: composer:v2
4433
coverage: none
4534

4635
- name: Install dependencies
47-
uses: nick-invision/retry@v1
36+
uses: nick-fields/retry@v3
4837
with:
4938
timeout_minutes: 5
5039
max_attempts: 5
51-
command: COMPOSER_ROOT_VERSION=dev-master composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress
40+
command: composer update --prefer-stable --prefer-dist --no-interaction --no-progress
5241

53-
- name: "Run a static analysis with phpstan/phpstan"
54-
run: "vendor/bin/phpstan --error-format=table"
42+
- name: Run Static Analysis
43+
run: vendor/bin/phpstan

.php_cs

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

.scrutinizer.yml

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

.styleci.yml

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

.travis.yml

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

0 commit comments

Comments
 (0)