Skip to content

Commit b100201

Browse files
committed
ci: workflows
1 parent 7d0e851 commit b100201

File tree

3 files changed

+28
-17
lines changed

3 files changed

+28
-17
lines changed

.github/workflows/continuous-integration.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ jobs:
1414
strategy:
1515
fail-fast: true
1616
matrix:
17-
php: [8.2, 8.3]
17+
php: [8.2, 8.3, 8.4]
1818
stability: [prefer-stable]
1919

2020
name: PHP ${{ matrix.php }} - ${{ matrix.stability }}
2121

2222
steps:
2323
- name: Checkout code
24-
uses: actions/checkout@v2
24+
uses: actions/checkout@v4
2525

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

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

.github/workflows/pint.yml

+10-2
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,22 @@ on:
77
jobs:
88
phplint:
99
runs-on: ubuntu-latest
10+
11+
permissions:
12+
contents: write
13+
pull-requests: write
14+
1015
steps:
1116
- uses: actions/checkout@v4
17+
with:
18+
ref: ${{ github.head_ref }}
19+
1220
- name: "laravel-pint"
13-
uses: aglipanci/laravel-pint-action@2.0.0
21+
uses: aglipanci/laravel-pint-action@latest
1422
with:
1523
preset: laravel
1624
verboseMode: true
25+
1726
- uses: stefanzweifel/git-auto-commit-action@v5
1827
with:
1928
commit_message: "fix: pint"
20-

.github/workflows/static-analysis.yml

+15-12
Original file line numberDiff line numberDiff line change
@@ -22,30 +22,33 @@ on:
2222

2323
jobs:
2424
static-analysis-phpstan:
25+
2526
name: "Static Analysis with PHPStan"
2627
runs-on: ubuntu-latest
2728

2829
strategy:
30+
fail-fast: true
2931
matrix:
30-
php: [8.2, 8.3]
32+
php: [8.2, 8.3, 8.4]
33+
stability: [prefer-stable]
3134

3235
steps:
33-
- name: "Checkout code"
34-
uses: "actions/checkout@v4"
36+
- name: Checkout code
37+
uses: actions/checkout@v4
3538

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

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

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

0 commit comments

Comments
 (0)