mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 09:02:12 +00:00
63 lines
1.8 KiB
YAML
63 lines
1.8 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: 5
|
|
|
|
if: github.repository == 'Sylius/Sylius'
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
branch: ["1.12", "1.13"]
|
|
|
|
steps:
|
|
-
|
|
uses: actions/checkout@v3
|
|
with:
|
|
ref: ${{ matrix.branch }}
|
|
|
|
-
|
|
name: Setup PHP
|
|
uses: shivammathur/setup-php@v2
|
|
with:
|
|
php-version: 8.0 # the lowest PHP version working with ECS
|
|
|
|
-
|
|
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 }}
|