From 924216b81ea69f70b8104f1c0d9b437e9a7e7805 Mon Sep 17 00:00:00 2001 From: Progi1984 Date: Wed, 12 Oct 2022 09:08:29 +0200 Subject: [PATCH 1/2] Functional Tests : Fixes Dependabot (Remove assignees team / Fixes reviewers team) --- .github/dependabot.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index b97c49fb61b04..1258e9bf60243 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -8,10 +8,8 @@ updates: time: "04:00" open-pull-requests-limit: 10 target-branch: develop - assignees: - - "qa-automation" reviewers: - - "qa-automation" + - "PrestaShop/qa-automation" labels: - "dependencies" - "develop" From ac7e3ad27ba91c901ee38bded993a3d71a032378 Mon Sep 17 00:00:00 2001 From: Progi1984 Date: Wed, 12 Oct 2022 11:15:40 +0200 Subject: [PATCH 2/2] Functional Tests : Disable PHP GA for Dependabot PR relative to UI/tests --- .github/workflows/behaviour.yml | 1 + .github/workflows/integration.yml | 1 + .github/workflows/php.yml | 6 +++--- .github/workflows/sanity-productV2.yml | 4 +--- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/behaviour.yml b/.github/workflows/behaviour.yml index 03481712b723a..94400bfbc3fb4 100644 --- a/.github/workflows/behaviour.yml +++ b/.github/workflows/behaviour.yml @@ -4,6 +4,7 @@ jobs: integration: name: Behaviour tests runs-on: ubuntu-latest + if: ${{ !startsWith(github.event.pull_request.title, 'Bump') && !endsWith(github.event.pull_request.title, 'in /tests/UI')}} strategy: matrix: php: [ '7.2', '7.3', '7.4', '8.0', '8.1' ] diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 1a56b245d6ab7..0fa97500e48c9 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -4,6 +4,7 @@ jobs: integration: name: Integration tests runs-on: ubuntu-latest + if: ${{ !startsWith(github.event.pull_request.title, 'Bump') && !endsWith(github.event.pull_request.title, 'in /tests/UI')}} strategy: matrix: php: [ '7.2', '7.3', '7.4', '8.0', '8.1' ] diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index d1db40a51fdf2..bf72631ae357d 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -2,7 +2,6 @@ name: PHP on: [ push, pull_request ] permissions: contents: read - jobs: php-cs-fixer: permissions: @@ -10,6 +9,7 @@ jobs: contents: read # for actions/checkout to fetch code name: PHP CS Fixer runs-on: ubuntu-latest + if: ${{ !startsWith(github.event.pull_request.title, 'Bump') && !endsWith(github.event.pull_request.title, 'in /tests/UI')}} steps: - name: Cancel Previous Runs uses: styfle/cancel-workflow-action@0.9.0 @@ -45,13 +45,13 @@ jobs: - name: Run ergebnis/composer-normalize run: composer normalize --dry-run --no-check-lock - phpstan: permissions: actions: write # for styfle/cancel-workflow-action to cancel/stop running workflows contents: read # for actions/checkout to fetch code name: PHP Static Analysis runs-on: ubuntu-latest + if: ${{ !startsWith(github.event.pull_request.title, 'Bump') && !endsWith(github.event.pull_request.title, 'in /tests/UI')}} strategy: matrix: php: [ '7.2', '7.3', '7.4', '8.0', '8.1' ] @@ -89,13 +89,13 @@ jobs: - name: Run phpstan run: ./vendor/bin/phpstan analyse -c phpstan.neon.dist - phpunit: permissions: actions: write # for styfle/cancel-workflow-action to cancel/stop running workflows contents: read # for actions/checkout to fetch code name: PHPUnit runs-on: ubuntu-latest + if: ${{ !startsWith(github.event.pull_request.title, 'Bump') && !endsWith(github.event.pull_request.title, 'in /tests/UI')}} strategy: matrix: php: [ '7.2', '7.3', '7.4', '8.0', '8.1' ] diff --git a/.github/workflows/sanity-productV2.yml b/.github/workflows/sanity-productV2.yml index c57b2f863bf26..478a2069f348c 100644 --- a/.github/workflows/sanity-productV2.yml +++ b/.github/workflows/sanity-productV2.yml @@ -11,15 +11,13 @@ on: - src/Adapter/Product/** - src/PrestaShopBundle/Resources/views/Admin/Sell/Catalog/Product/** jobs: - sanity: runs-on: ubuntu-latest - name: Sanity product V2 + name: Sanity Product V2 strategy: matrix: php: [ '7.2', '7.3', '7.4', '8.0', '8.1' ] fail-fast: false - steps: - name: Cancel Previous Runs uses: styfle/cancel-workflow-action@0.9.0