Skip to content

Commit 23db13d

Browse files
committed
[Rector] Enabled rector on CI
1 parent 751236e commit 23db13d

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,31 @@ jobs:
3333
- name: Run code style check
3434
run: composer run-script check-cs -- --format=checkstyle | cs2pr
3535

36+
rector:
37+
name: Run rector
38+
runs-on: "ubuntu-22.04"
39+
strategy:
40+
matrix:
41+
php:
42+
- '8.3'
43+
steps:
44+
- uses: actions/checkout@v4
45+
46+
- name: Setup PHP Action
47+
uses: shivammathur/setup-php@v2
48+
with:
49+
php-version: ${{ matrix.php }}
50+
coverage: none
51+
extensions: 'pdo_sqlite, gd'
52+
tools: cs2pr
53+
54+
- uses: ramsey/composer-install@v3
55+
with:
56+
dependency-versions: highest
57+
58+
- name: Run rector
59+
run: vendor/bin/rector process --dry-run --ansi
60+
3661
tests:
3762
name: Tests
3863
runs-on: "ubuntu-22.04"

0 commit comments

Comments
 (0)