Skip to content

Refactor

Refactor #198

Workflow file for this run

name: Refactor
on:
schedule:
-
cron: "0 2 * * *" # Run every day at 2am
workflow_dispatch: ~
permissions:
contents: write
pull-requests: write
jobs:
coding-standard:
runs-on: ubuntu-latest
name: "Coding standard refactor"
timeout-minutes: 5
if: github.repository == 'Sylius/Sylius'
strategy:
fail-fast: false
matrix:
include:
-
branch: "1.12"
php: "8.0"
-
branch: "1.13"
php: "8.1"
-
branch: "2.0"
php: "8.2"
steps:
-
uses: actions/checkout@v4
with:
ref: ${{ matrix.branch }}
-
name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
-
name: Install PHP dependencies
run: composer update --no-interaction --no-scripts
-
name: Run ECS
run: vendor/bin/ecs check --fix src/Sylius
-
name: Create Pull Request
uses: peter-evans/create-pull-request@v4
with:
commit-message: '[CS][DX] Refactor'
author: Sylius Bot <bot@sylius.org>
title: '[CS][DX] Refactor'
body: |
This PR has been generated automatically.
For more details see [refactor.yaml](/Sylius/Sylius/blob/1.12/.github/workflows/refactor.yaml).
labels: |
DX
Enhancement
branch: coding-standard/refactor-${{ matrix.branch }}
delete-branch: true
base: ${{ matrix.branch }}