Skip to content

Commit b80e8d0

Browse files
committed
Consolidate CI processes
1 parent fcb353b commit b80e8d0

File tree

2 files changed

+30
-42
lines changed

2 files changed

+30
-42
lines changed

.github/workflows/tests.yaml renamed to .github/workflows/ci.yaml

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Tests
1+
name: CI
22

33
on:
44
pull_request: null
@@ -10,7 +10,7 @@ on:
1010

1111
jobs:
1212
Tests:
13-
name: PHP ${{ matrix.php }}, Symfony ${{ matrix.symfony }}${{ matrix.dependencies }}
13+
name: PHP ${{ matrix.php }} Symfony ${{ matrix.symfony }}${{ matrix.description }}
1414
runs-on: ubuntu-latest
1515
env:
1616
SYMFONY_DEPRECATIONS_HELPER: 'max[self]=0'
@@ -26,8 +26,7 @@ jobs:
2626
php: '8.3'
2727
- symfony: '^6.4'
2828
php: '8.2'
29-
- description: 'Prefer lowest'
30-
php: '8.2'
29+
- php: '8.2'
3130
dependencies: '--prefer-lowest'
3231
env:
3332
SYMFONY_DEPRECATIONS_HELPER: 'disabled'
@@ -57,3 +56,30 @@ jobs:
5756
files: './coverage.xml'
5857
fail_ci_if_error: true
5958
token: ${{ secrets.CODECOV_TOKEN }}
59+
SA:
60+
strategy:
61+
matrix:
62+
include:
63+
- description: Validate composer.json
64+
script: composer validate
65+
- description: Code style
66+
script: vendor/bin/php-cs-fixer fix --ansi --verbose --dry-run
67+
- description: Rector
68+
script: vendor/bin/rector --ansi --dry-run
69+
- description: PHPStan
70+
script: vendor/bin/phpstan analyze
71+
- description: Psalm
72+
script: vendor/bin/psalm
73+
74+
name: ${{ matrix.description }}
75+
runs-on: ubuntu-latest
76+
steps:
77+
- name: Checkout
78+
uses: actions/checkout@v4
79+
- name: Setup PHP
80+
uses: shivammathur/setup-php@v2
81+
with:
82+
php-version: 8.2
83+
- name: Install dependencies
84+
uses: "ramsey/composer-install@v3"
85+
- run: ${{ matrix.script }}

.github/workflows/static-analysis.yaml

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)