Skip to content

Commit 0a8b9a1

Browse files
committed
Run rector withing the same job
1 parent b708802 commit 0a8b9a1

1 file changed

Lines changed: 3 additions & 25 deletions

File tree

.github/workflows/code_samples.yaml

Lines changed: 3 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ jobs:
3838
- name: Run PHPStan analysis
3939
run: composer phpstan
4040

41+
- name: Run rector
42+
run: vendor/bin/rector process --dry-run --ansi
43+
4144
code-samples-inclusion-check:
4245
name: Check code samples inclusion
4346
runs-on: ubuntu-latest
@@ -143,28 +146,3 @@ jobs:
143146
issue-number: ${{ github.event.pull_request.number }}
144147
body-path: code_samples_usage.diff.md
145148
edit-mode: replace
146-
147-
rector:
148-
name: Run rector
149-
runs-on: "ubuntu-22.04"
150-
strategy:
151-
matrix:
152-
php:
153-
- '8.3'
154-
steps:
155-
- uses: actions/checkout@v4
156-
157-
- name: Setup PHP Action
158-
uses: shivammathur/setup-php@v2
159-
with:
160-
php-version: ${{ matrix.php }}
161-
coverage: none
162-
extensions: 'pdo_sqlite, gd'
163-
tools: cs2pr
164-
165-
- uses: ramsey/composer-install@v3
166-
with:
167-
dependency-versions: highest
168-
169-
- name: Run rector
170-
run: vendor/bin/rector process --dry-run --ansi

0 commit comments

Comments
 (0)