Skip to content

Commit 5c5aa0f

Browse files
committed
chore: github workflows
1 parent 6958927 commit 5c5aa0f

File tree

4 files changed

+108
-78
lines changed

4 files changed

+108
-78
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
strategy:
1515
fail-fast: true
1616
matrix:
17-
php: [8.1, 8.2]
17+
php: [8.2, 8.3]
1818
stability: [prefer-stable]
1919

2020
name: PHP ${{ matrix.php }} - ${{ matrix.stability }}
@@ -39,7 +39,7 @@ jobs:
3939
with:
4040
timeout_minutes: 5
4141
max_attempts: 5
42-
command: COMPOSER_ROOT_VERSION=dev-master composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress
42+
command: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress
4343

4444
- name: Execute tests
4545
run: vendor/bin/phpunit

.github/workflows/pint.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: PHP Linting
2+
on:
3+
pull_request:
4+
push:
5+
branches:
6+
- master
7+
jobs:
8+
phplint:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- name: "laravel-pint"
13+
uses: aglipanci/[email protected]
14+
with:
15+
preset: laravel
16+
verboseMode: true
17+
- uses: stefanzweifel/git-auto-commit-action@v5
18+
with:
19+
commit_message: "fix: pint"
20+

.github/workflows/static-analysis.yml

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -22,33 +22,30 @@ on:
2222

2323
jobs:
2424
static-analysis-phpstan:
25-
2625
name: "Static Analysis with PHPStan"
2726
runs-on: ubuntu-latest
2827

2928
strategy:
30-
fail-fast: true
3129
matrix:
32-
php: [8.1]
33-
stability: [prefer-stable]
30+
php: [8.2, 8.3]
3431

3532
steps:
36-
- name: Checkout code
37-
uses: actions/checkout@v2
33+
- name: "Checkout code"
34+
uses: "actions/checkout@v4"
3835

39-
- name: Setup PHP
40-
uses: shivammathur/setup-php@v2
36+
- name: "Install PHP"
37+
uses: "shivammathur/setup-php@v2"
4138
with:
42-
php-version: ${{ matrix.php }}
43-
tools: composer:v2
44-
coverage: none
39+
coverage: "none"
40+
php-version: "${{ matrix.php-version }}"
41+
tools: "cs2pr"
4542

4643
- name: Install dependencies
47-
uses: nick-invision/retry@v1
44+
uses: nick-fields/retry@v2
4845
with:
4946
timeout_minutes: 5
5047
max_attempts: 5
51-
command: COMPOSER_ROOT_VERSION=dev-master composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress
48+
command: composer update --prefer-stable --prefer-dist --no-interaction --no-progress
5249

53-
- name: "Run a static analysis with phpstan/phpstan"
54-
run: "vendor/bin/phpstan --error-format=github"
50+
- name: Execute type checking
51+
run: vendor/bin/phpstan --configuration="phpstan.neon.dist"

composer.json

Lines changed: 74 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,77 @@
11
{
2-
"name": "yajra/laravel-datatables-export",
3-
"description": "Laravel DataTables Queued Export Plugin.",
4-
"keywords": [
5-
"laravel",
6-
"datatables",
7-
"export",
8-
"excel",
9-
"livewire",
10-
"queue"
11-
],
12-
"license": "MIT",
13-
"authors": [
14-
{
15-
"name": "Arjay Angeles",
16-
"email": "[email protected]"
17-
}
18-
],
19-
"require": {
20-
"php": "^8.1",
21-
"ext-json": "*",
22-
"livewire/livewire": "^2.11.2|^3.0.1",
23-
"openspout/openspout": "^4.12.1",
24-
"phpoffice/phpspreadsheet": "^1.27",
25-
"yajra/laravel-datatables-buttons": "^11.0"
26-
},
27-
"require-dev": {
28-
"nunomaduro/larastan": "^2.9.2",
29-
"orchestra/testbench": "^9.0"
30-
},
31-
"autoload": {
32-
"psr-4": {
33-
"Yajra\\DataTables\\": "src/"
34-
}
35-
},
36-
"autoload-dev": {
37-
"psr-4": {
38-
"Yajra\\DataTables\\Exports\\Tests\\": "tests/"
39-
}
40-
},
41-
"config": {
42-
"preferred-install": "dist",
43-
"sort-packages": true,
44-
"optimize-autoloader": true
45-
},
46-
"extra": {
47-
"branch-alias": {
48-
"dev-master": "11.x-dev"
2+
"name": "yajra/laravel-datatables-export",
3+
"description": "Laravel DataTables Queued Export Plugin.",
4+
"keywords": [
5+
"laravel",
6+
"datatables",
7+
"export",
8+
"excel",
9+
"livewire",
10+
"queue"
11+
],
12+
"license": "MIT",
13+
"authors": [
14+
{
15+
"name": "Arjay Angeles",
16+
"email": "[email protected]"
17+
}
18+
],
19+
"require": {
20+
"php": "^8.1",
21+
"ext-json": "*",
22+
"livewire/livewire": "^2.11.2|^3.0.1",
23+
"openspout/openspout": "^4.12.1",
24+
"phpoffice/phpspreadsheet": "^1.27",
25+
"yajra/laravel-datatables-buttons": "^11.0"
4926
},
50-
"laravel": {
51-
"providers": [
52-
"Yajra\\DataTables\\ExportServiceProvider"
53-
]
54-
}
55-
},
56-
"minimum-stability": "dev",
57-
"prefer-stable": true,
58-
"funding": [
59-
{
60-
"type": "github",
61-
"url": "https://github.com/sponsors/yajra"
62-
}
63-
]
27+
"require-dev": {
28+
"larastan/larastan": "^2.9.1",
29+
"orchestra/testbench": "^9",
30+
"laravel/pint": "^1.14",
31+
"rector/rector": "^1.0" },
32+
"autoload": {
33+
"psr-4": {
34+
"Yajra\\DataTables\\": "src/"
35+
}
36+
},
37+
"autoload-dev": {
38+
"psr-4": {
39+
"Yajra\\DataTables\\Exports\\Tests\\": "tests/"
40+
}
41+
},
42+
"scripts": {
43+
"test": "./vendor/bin/phpunit",
44+
"pint": "./vendor/bin/pint",
45+
"rector": "./vendor/bin/rector",
46+
"stan": "./vendor/bin/phpstan analyse --memory-limit=2G --ansi --no-progress --no-interaction --configuration=phpstan.neon.dist",
47+
"pr": [
48+
"@pint",
49+
"@rector",
50+
"@stan",
51+
"@test"
52+
]
53+
},
54+
"config": {
55+
"preferred-install": "dist",
56+
"sort-packages": true,
57+
"optimize-autoloader": true
58+
},
59+
"extra": {
60+
"branch-alias": {
61+
"dev-master": "11.x-dev"
62+
},
63+
"laravel": {
64+
"providers": [
65+
"Yajra\\DataTables\\ExportServiceProvider"
66+
]
67+
}
68+
},
69+
"minimum-stability": "dev",
70+
"prefer-stable": true,
71+
"funding": [
72+
{
73+
"type": "github",
74+
"url": "https://github.com/sponsors/yajra"
75+
}
76+
]
6477
}

0 commit comments

Comments
 (0)