mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-05 20:57:12 +00:00
72 lines
2 KiB
YAML
72 lines
2 KiB
YAML
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: 15
|
|
|
|
if: github.repository == 'Sylius/Sylius'
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include:
|
|
-
|
|
branch: "1.14"
|
|
php: "8.1"
|
|
-
|
|
branch: "2.1"
|
|
php: "8.2"
|
|
-
|
|
branch: "2.2"
|
|
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/2.1/.github/workflows/refactor.yaml).
|
|
labels: |
|
|
DX
|
|
Enhancement
|
|
branch: coding-standard/refactor-${{ matrix.branch }}
|
|
delete-branch: true
|
|
base: ${{ matrix.branch }}
|