Skip to content

Commit fbb82b7

Browse files
committed
ci: workflows
1 parent c535c64 commit fbb82b7

File tree

3 files changed

+43
-37
lines changed

3 files changed

+43
-37
lines changed
Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,32 @@
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

16+
services:
17+
oracle:
18+
image: deepdiver/docker-oracle-xe-11g:2.0
19+
ports:
20+
- 49160:22
21+
- 1521:1521
22+
1423
strategy:
1524
fail-fast: true
1625
matrix:
17-
php: [8.2, 8.3]
26+
php: [8.2, 8.3, 8.4]
1827
stability: [prefer-stable]
1928

20-
name: PHP ${{ matrix.php }} - ${{ matrix.stability }}
29+
name: PHP ${{ matrix.php }} - STABILITY ${{ matrix.stability }}
2130

2231
steps:
2332
- name: Checkout code
@@ -27,7 +36,6 @@ jobs:
2736
uses: shivammathur/setup-php@v2
2837
with:
2938
php-version: ${{ matrix.php }}
30-
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, gd, memcached
3139
tools: composer:v2
3240
coverage: none
3341

@@ -39,7 +47,7 @@ jobs:
3947
with:
4048
timeout_minutes: 5
4149
max_attempts: 5
42-
command: COMPOSER_ROOT_VERSION=dev-master composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress
50+
command: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress
4351

4452
- name: Execute tests
4553
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: 11 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +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:
2516

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

29-
strategy:
30-
fail-fast: true
31-
matrix:
32-
php: [8.2, 8.3]
33-
stability: [prefer-stable]
34-
3520
steps:
3621
- name: Checkout code
37-
uses: actions/checkout@v2
22+
uses: actions/checkout@v4
3823

3924
- name: Setup PHP
4025
uses: shivammathur/setup-php@v2
4126
with:
42-
php-version: ${{ matrix.php }}
27+
php-version: 8.2
4328
tools: composer:v2
4429
coverage: none
4530

4631
- name: Install dependencies
47-
uses: nick-invision/retry@v1
32+
uses: nick-fields/retry@v3
4833
with:
4934
timeout_minutes: 5
5035
max_attempts: 5
51-
command: COMPOSER_ROOT_VERSION=dev-master composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress
36+
command: composer update --prefer-stable --prefer-dist --no-interaction --no-progress
5237

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

0 commit comments

Comments
 (0)