Skip to content

Commit b0722ca

Browse files
committedMar 1, 2025·
ci: workflows
1 parent 52bebda commit b0722ca

File tree

3 files changed

+29
-36
lines changed

3 files changed

+29
-36
lines changed
 
+14-8
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,42 @@
1-
name: "Continuous Integration"
1+
name: Continuous Integration
22

33
on:
44
push:
55
branches:
66
- master
7-
- 11.x
7+
- '*.x'
88
pull_request:
99
schedule:
1010
- cron: '0 0 * * *'
1111

1212
jobs:
13-
phpunit:
14-
13+
tests:
1514
runs-on: ubuntu-latest
1615

16+
services:
17+
oracle:
18+
image: deepdiver/docker-oracle-xe-11g:2.0
19+
ports:
20+
- 49160:22
21+
- 1521:1521
22+
1723
strategy:
1824
fail-fast: true
1925
matrix:
2026
php: [8.2, 8.3, 8.4]
2127
stability: [prefer-stable]
2228

23-
name: PHP ${{ matrix.php }} - ${{ matrix.stability }}
29+
name: PHP ${{ matrix.php }} - STABILITY ${{ matrix.stability }}
2430

2531
steps:
2632
- name: Checkout code
27-
uses: actions/checkout@v4
33+
uses: actions/checkout@v2
2834

2935
- name: Setup PHP
3036
uses: shivammathur/setup-php@v2
3137
with:
3238
php-version: ${{ matrix.php }}
33-
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, gd, memcached
39+
extensions: oci8
3440
tools: composer:v2
3541
coverage: none
3642

@@ -42,7 +48,7 @@ jobs:
4248
with:
4349
timeout_minutes: 5
4450
max_attempts: 5
45-
command: COMPOSER_ROOT_VERSION=dev-master composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress
51+
command: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress
4652

4753
- name: Execute tests
4854
run: vendor/bin/phpunit

‎.github/workflows/pint.yml

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
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
1015

1116
permissions:
@@ -25,4 +30,4 @@ jobs:
2530

2631
- uses: stefanzweifel/git-auto-commit-action@v5
2732
with:
28-
commit_message: "fix: pint"
33+
commit_message: "fix: pint :robot:"

‎.github/workflows/static-analysis.yml

+8-26
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,39 @@
1-
name: "Static Analysis"
1+
name: Static Analysis
22

33
on:
44
push:
55
branches:
66
- master
7-
- 11.x
8-
paths:
9-
- .github/workflows/static-analysis.yml
10-
- composer.*
11-
- phpstan.neon.dist
12-
- src/**
13-
- tests/**
7+
- '*.x'
148

159
pull_request:
16-
paths:
17-
- .github/workflows/static-analysis.yml
18-
- composer.*
19-
- phpstan.neon.dist
20-
- src/**
21-
- tests/**
2210

2311
schedule:
2412
- cron: '0 0 * * *'
2513

2614
jobs:
2715
static-analysis-phpstan:
2816

29-
name: "Static Analysis with PHPStan"
17+
name: Source Code
3018
runs-on: ubuntu-latest
3119

32-
strategy:
33-
fail-fast: true
34-
matrix:
35-
php: [8.2, 8.3, 8.4]
36-
stability: [prefer-stable]
37-
3820
steps:
3921
- name: Checkout code
4022
uses: actions/checkout@v4
4123

4224
- name: Setup PHP
4325
uses: shivammathur/setup-php@v2
4426
with:
45-
php-version: ${{ matrix.php }}
27+
php-version: 8.2
4628
tools: composer:v2
4729
coverage: none
4830

4931
- name: Install dependencies
50-
uses: nick-invision/retry@v1
32+
uses: nick-fields/retry@v3
5133
with:
5234
timeout_minutes: 5
5335
max_attempts: 5
54-
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
5537

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

0 commit comments

Comments
 (0)
Please sign in to comment.