Skip to content

Commit 6c2cf0f

Browse files
committed
Rector workflow
1 parent 2c175cb commit 6c2cf0f

2 files changed

Lines changed: 29 additions & 0 deletions

File tree

.github/workflows/rector.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Rector
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
9+
jobs:
10+
rector:
11+
runs-on: ubuntu-latest
12+
13+
name: Rector
14+
15+
steps:
16+
- uses: actions/checkout@v5
17+
18+
- name: Setup PHP
19+
uses: shivammathur/setup-php@v2
20+
with:
21+
php-version: '8.4'
22+
coverage: none
23+
24+
- name: Install dependencies
25+
run: composer install --no-interaction --prefer-dist
26+
27+
- name: Run Rector
28+
run: vendor/bin/rector --dry-run

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
[![Tests](https://github.com/TypiCMS/NestableCollection/actions/workflows/tests.yml/badge.svg)](https://github.com/TypiCMS/NestableCollection/actions/workflows/tests.yml)
55
[![PHPStan](https://github.com/TypiCMS/NestableCollection/actions/workflows/phpstan.yml/badge.svg)](https://github.com/TypiCMS/NestableCollection/actions/workflows/phpstan.yml)
66
[![Pint](https://github.com/TypiCMS/NestableCollection/actions/workflows/pint.yml/badge.svg)](https://github.com/TypiCMS/NestableCollection/actions/workflows/pint.yml)
7+
[![Rector](https://github.com/TypiCMS/NestableCollection/actions/workflows/rector.yml/badge.svg)](https://github.com/TypiCMS/NestableCollection/actions/workflows/rector.yml)
78

89
A Laravel package that extends Eloquent collections to handle nested items following the adjacency list model.
910

0 commit comments

Comments
 (0)