Skip to content

Merge pull request #1108 from nguyenthanhan/fix/crawlers-energy-displ… #1

Merge pull request #1108 from nguyenthanhan/fix/crawlers-energy-displ…

Merge pull request #1108 from nguyenthanhan/fix/crawlers-energy-displ… #1

name: PHP Rector Refactoring
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
php-rector-refactoring:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: shivammathur/setup-php@v2
with:
php-version: '8.5'
coverage: none
- name: Cache Composer packages
uses: actions/cache@v5
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: Install Dev Dependencies
run: composer install --no-ansi --no-interaction --no-progress
- name: Rector
run: composer run rector -- --dry-run