Skip to content

Commit

Permalink
Update rector config file
Browse files Browse the repository at this point in the history
  • Loading branch information
guanguans committed Jun 17, 2023
1 parent 4f49bac commit 3ec75b8
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 5 deletions.
6 changes: 1 addition & 5 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,5 @@ insert_final_newline = true
[*.md]
trim_trailing_whitespace = false

[*.{yaml,yml}]
indent_size = 2
insert_final_newline = true

[*.{xml,xml.dist}]
[*.{yml,yaml,xml,xml.dist}]
indent_size = 2
36 changes: 36 additions & 0 deletions .github/workflows/rector.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: rector

on:
push:
paths:
- '**.php'
- '.github/**.yml'
- '.github/**.yaml'
- '*.xml'
- '*.xml.dist'

jobs:
rector:
name: rector
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.2'
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
coverage: none

- name: Cache composer dependencies
uses: actions/cache@v3
with:
path: vendor
key: composer-${{ hashFiles('composer.lock') }}

- name: Run composer install
run: composer install --no-interaction --prefer-dist --ansi -v

- name: Run rector
run: composer rector-dry-run

0 comments on commit 3ec75b8

Please sign in to comment.