Skip to content

Commit 058c241

Browse files
committed
ci: workflows
1 parent 2f45679 commit 058c241

File tree

3 files changed

+41
-39
lines changed

3 files changed

+41
-39
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,25 @@
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:
11-
13+
tests:
1214
runs-on: ubuntu-latest
1315

1416
strategy:
1517
fail-fast: true
1618
matrix:
17-
php: [8.2, 8.3]
19+
php: [8.2, 8.3, 8.4]
1820
stability: [prefer-stable]
1921

20-
name: PHP ${{ matrix.php }} - ${{ matrix.stability }}
22+
name: PHP ${{ matrix.php }} - STABILITY ${{ matrix.stability }}
2123

2224
steps:
2325
- name: Checkout code
@@ -27,7 +29,6 @@ jobs:
2729
uses: shivammathur/setup-php@v2
2830
with:
2931
php-version: ${{ matrix.php }}
30-
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, gd, memcached
3132
tools: composer:v2
3233
coverage: none
3334

@@ -42,4 +43,4 @@ jobs:
4243
command: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress
4344

4445
- name: Execute tests
45-
run: vendor/bin/pest
46+
run: vendor/bin/phpunit

.github/workflows/pint.yml

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,33 @@
11
name: PHP Linting
2+
23
on:
34
pull_request:
45
push:
56
branches:
67
- master
8+
- '*.x'
9+
710
jobs:
8-
phplint:
11+
pint:
12+
name: Pint
13+
914
runs-on: ubuntu-latest
15+
16+
permissions:
17+
contents: write
18+
pull-requests: write
19+
1020
steps:
1121
- uses: actions/checkout@v4
22+
with:
23+
ref: ${{ github.head_ref }}
24+
1225
- name: "laravel-pint"
13-
uses: aglipanci/laravel-pint-action@2.0.0
26+
uses: aglipanci/laravel-pint-action@latest
1427
with:
1528
preset: laravel
1629
verboseMode: true
30+
1731
- uses: stefanzweifel/git-auto-commit-action@v5
1832
with:
19-
commit_message: "fix: pint"
20-
33+
commit_message: "fix: pint :robot:"

.github/workflows/static-analysis.yml

Lines changed: 16 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,39 @@
1-
name: "Static Analysis"
1+
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:
25-
name: "Static Analysis with PHPStan"
26-
runs-on: ubuntu-latest
2716

28-
strategy:
29-
matrix:
30-
php: [8.2, 8.3]
17+
name: Source Code
18+
runs-on: ubuntu-latest
3119

3220
steps:
33-
- name: "Checkout code"
34-
uses: "actions/checkout@v4"
21+
- name: Checkout code
22+
uses: actions/checkout@v4
3523

36-
- name: "Install PHP"
37-
uses: "shivammathur/setup-php@v2"
24+
- name: Setup PHP
25+
uses: shivammathur/setup-php@v2
3826
with:
39-
coverage: "none"
40-
php-version: "${{ matrix.php-version }}"
41-
tools: "cs2pr"
27+
php-version: 8.2
28+
tools: composer:v2
29+
coverage: none
4230

4331
- name: Install dependencies
44-
uses: nick-fields/retry@v2
32+
uses: nick-fields/retry@v3
4533
with:
4634
timeout_minutes: 5
4735
max_attempts: 5
4836
command: composer update --prefer-stable --prefer-dist --no-interaction --no-progress
4937

50-
- name: Execute type checking
51-
run: vendor/bin/phpstan --configuration="phpstan.neon.dist"
38+
- name: Run Static Analysis
39+
run: vendor/bin/phpstan

0 commit comments

Comments
 (0)