From 5ed2c5a1f667a695d68e09be035ab463afd94f30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Paris?= Date: Sat, 15 Oct 2022 11:12:00 +0200 Subject: [PATCH] Run only relevant workflows The downside of this is that we will have to tweak the settings so that no job is required anymore. The upside is that builds should be faster, and less resource-intensive. --- .github/workflows/coding-standard.yml | 13 ---------- .github/workflows/coding-standards.yml | 27 ++++++++++++++++++++ .github/workflows/continuous-integration.yml | 14 ++++++++++ .github/workflows/phpbench.yml | 12 +++++++++ .github/workflows/static-analysis.yml | 14 ++++++++++ 5 files changed, 67 insertions(+), 13 deletions(-) delete mode 100644 .github/workflows/coding-standard.yml create mode 100644 .github/workflows/coding-standards.yml diff --git a/.github/workflows/coding-standard.yml b/.github/workflows/coding-standard.yml deleted file mode 100644 index d861ff8cf5d..00000000000 --- a/.github/workflows/coding-standard.yml +++ /dev/null @@ -1,13 +0,0 @@ -name: "Coding Standards" - -on: - pull_request: - branches: - - "*.x" - push: - branches: - - "*.x" - -jobs: - coding-standards: - uses: "doctrine/.github/.github/workflows/coding-standards.yml@2.0.0" diff --git a/.github/workflows/coding-standards.yml b/.github/workflows/coding-standards.yml new file mode 100644 index 00000000000..b57cbc171a3 --- /dev/null +++ b/.github/workflows/coding-standards.yml @@ -0,0 +1,27 @@ +name: "Coding Standards" + +on: + pull_request: + branches: + - "*.x" + paths: + - .github/workflows/coding-standards.yml + - bin/** + - composer.* + - lib/** + - phpcs.xml.dist + - tests/** + push: + branches: + - "*.x" + paths: + - .github/workflows/coding-standards.yml + - bin/** + - composer.* + - lib/** + - phpcs.xml.dist + - tests/** + +jobs: + coding-standards: + uses: "doctrine/.github/.github/workflows/coding-standards.yml@2.0.0" diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index b44eb524962..1d312330d61 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -4,9 +4,23 @@ on: pull_request: branches: - "*.x" + paths: + - .github/workflows/continuous-integration.yml + - ci/** + - composer.* + - lib/** + - phpunit.xml.dist + - tests/** push: branches: - "*.x" + paths: + - .github/workflows/continuous-integration.yml + - ci/** + - composer.* + - lib/** + - phpunit.xml.dist + - tests/** env: fail-fast: true diff --git a/.github/workflows/phpbench.yml b/.github/workflows/phpbench.yml index 4924834a396..4183f8168b0 100644 --- a/.github/workflows/phpbench.yml +++ b/.github/workflows/phpbench.yml @@ -5,9 +5,21 @@ on: pull_request: branches: - "*.x" + paths: + - .github/workflows/phpbench.yml + - composer.* + - lib/** + - phpbench.json + - tests/** push: branches: - "*.x" + paths: + - .github/workflows/phpbench.yml + - composer.* + - lib/** + - phpbench.json + - tests/** env: fail-fast: true diff --git a/.github/workflows/static-analysis.yml b/.github/workflows/static-analysis.yml index 830c9635858..7ec9d88bb0e 100644 --- a/.github/workflows/static-analysis.yml +++ b/.github/workflows/static-analysis.yml @@ -5,9 +5,23 @@ on: pull_request: branches: - "*.x" + paths: + - .github/workflows/static-analysis.yml + - composer.* + - lib/** + - phpstan* + - psalm* + - tests/** push: branches: - "*.x" + paths: + - .github/workflows/static-analysis.yml + - composer.* + - lib/** + - phpstan* + - psalm* + - tests/** jobs: static-analysis-phpstan: