From f067dd996947162283827f8b3111748dd114995e Mon Sep 17 00:00:00 2001 From: Fabiana Romagnoli Date: Thu, 2 May 2024 16:37:14 +0200 Subject: [PATCH 1/3] Do not run Roave BC Check with Docker in CI --- .github/workflows/ci.yaml | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index d63ec64..370b498 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -82,10 +82,21 @@ jobs: roave_bc_check: name: Roave BC Check - runs-on: ubuntu-22.04 - steps: - - uses: actions/checkout@v2 - - name: Roave BC Check - uses: docker://nyholm/roave-bc-check-ga + - name: Checkout code + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: "${{ matrix.php }}" + coverage: none + + - name: Install roave/backward-compatibility-check. + run: composer require --dev roave/backward-compatibility-check --no-plugins + + - name: Run roave/backward-compatibility-check. + run: vendor/bin/roave-backward-compatibility-check --format=github-actions From 9affee57035f5f1632296737943ae844cbfc8699 Mon Sep 17 00:00:00 2001 From: Fabiana Romagnoli Date: Thu, 2 May 2024 16:45:34 +0200 Subject: [PATCH 2/3] Roave BC check runs with php 8.2 --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 370b498..384b95c 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -92,7 +92,7 @@ jobs: - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: "${{ matrix.php }}" + php-version: 8.2 coverage: none - name: Install roave/backward-compatibility-check. From 3863352534d2008e65415ce84864e9f223de9e8a Mon Sep 17 00:00:00 2001 From: Fabiana Romagnoli Date: Thu, 2 May 2024 17:23:19 +0200 Subject: [PATCH 3/3] Fix Roave BC Check --- .github/workflows/ci.yaml | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 384b95c..de71dbe 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -27,6 +27,8 @@ jobs: steps: - uses: actions/checkout@v2 + with: + fetch-depth: 0 # This is needed for Roave BC check - name: Configure sysctl limits run: | @@ -80,23 +82,8 @@ jobs: if: ${{ failure() }} run: sudo bash ./upload-textfiles "/var/log/elasticsearch/*.log" - roave_bc_check: - name: Roave BC Check - runs-on: ubuntu-22.04 - steps: - - name: Checkout code - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - - name: Setup PHP - uses: shivammathur/setup-php@v2 - with: - php-version: 8.2 - coverage: none - - name: Install roave/backward-compatibility-check. - run: composer require --dev roave/backward-compatibility-check --no-plugins + run: composer require --dev roave/backward-compatibility-check - name: Run roave/backward-compatibility-check. run: vendor/bin/roave-backward-compatibility-check --format=github-actions