Skip to content

Prepare to release

Prepare to release #25

Workflow file for this run

---
on: # yamllint disable-line rule:truthy
pull_request:
branches:
- '*.*'
paths:
- 'src/**'
- 'tests/**'
- '.php-cs-fixer.dist.php'
- 'rector.php'
name: ⚙️ Refactoring
jobs:
refactoring:
timeout-minutes: 4
runs-on: ${{ matrix.os }}
concurrency:
cancel-in-progress: true
group: refactoring-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
strategy:
fail-fast: true
matrix:
os:
- ubuntu-latest
php-version:
- '8.2'
dependencies:
- locked
steps:
- name: 📦 Check out the codebase
uses: actions/checkout@v5
- name: 🛠️ Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
extensions: mbstring
ini-values: error_reporting=E_ALL
coverage: none
- name: 🤖 Validate composer.json and composer.lock
run: composer validate --ansi --strict
- name: 📥 Install dependencies with composer
uses: ramsey/composer-install@v3
with:
dependency-versions: "${{ matrix.dependencies }}"
- name: ⚙️ Run automated refactoring with rector/rector
run: composer refactor:ci