From 5f5b92797ff4544e79f502f7624a2e2712ae1d1d Mon Sep 17 00:00:00 2001 From: "John Paul E. Balandan, CPA" Date: Wed, 11 Dec 2024 00:21:17 +0800 Subject: [PATCH] Checkout base branch to resolve codeigniter4/framework --- .github/workflows/reusable-coveralls.yml | 6 ++++++ .github/workflows/reusable-phpunit-test.yml | 6 ++++++ .github/workflows/reusable-serviceless-phpunit-test.yml | 6 ++++++ .github/workflows/test-autoreview.yml | 6 ++++++ .github/workflows/test-coding-standards.yml | 6 ++++++ .github/workflows/test-deptrac.yml | 6 ++++++ .github/workflows/test-phpstan.yml | 6 ++++++ .github/workflows/test-psalm.yml | 6 ++++++ .github/workflows/test-rector.yml | 6 ++++++ 9 files changed, 54 insertions(+) diff --git a/.github/workflows/reusable-coveralls.yml b/.github/workflows/reusable-coveralls.yml index af1fd2f5b6c1..b3fcd09484fc 100644 --- a/.github/workflows/reusable-coveralls.yml +++ b/.github/workflows/reusable-coveralls.yml @@ -13,6 +13,12 @@ jobs: runs-on: ubuntu-22.04 steps: + - name: Checkout base branch for PR + if: github.event_name == 'pull_request' + uses: actions/checkout@v4 + with: + ref: ${{ github.base_ref }} + - name: Checkout uses: actions/checkout@v4 diff --git a/.github/workflows/reusable-phpunit-test.yml b/.github/workflows/reusable-phpunit-test.yml index 9758d6eb5410..cf23be58f2bc 100644 --- a/.github/workflows/reusable-phpunit-test.yml +++ b/.github/workflows/reusable-phpunit-test.yml @@ -148,6 +148,12 @@ jobs: sudo apt-get install -y gsfonts libmagickwand-dev imagemagick sudo apt-get install --fix-broken + - name: Checkout base branch for PR + if: github.event_name == 'pull_request' + uses: actions/checkout@v4 + with: + ref: ${{ github.base_ref }} + - name: Checkout uses: actions/checkout@v4 diff --git a/.github/workflows/reusable-serviceless-phpunit-test.yml b/.github/workflows/reusable-serviceless-phpunit-test.yml index 8a9f00c5e2e6..25080164320b 100644 --- a/.github/workflows/reusable-serviceless-phpunit-test.yml +++ b/.github/workflows/reusable-serviceless-phpunit-test.yml @@ -60,6 +60,12 @@ jobs: sudo apt-get install -y imagemagick sudo apt-get install --fix-broken + - name: Checkout base branch for PR + if: github.event_name == 'pull_request' + uses: actions/checkout@v4 + with: + ref: ${{ github.base_ref }} + - name: Checkout uses: actions/checkout@v4 diff --git a/.github/workflows/test-autoreview.yml b/.github/workflows/test-autoreview.yml index 69545ca6af01..10424ff0d4c5 100644 --- a/.github/workflows/test-autoreview.yml +++ b/.github/workflows/test-autoreview.yml @@ -35,6 +35,12 @@ jobs: name: Check normalized composer.json runs-on: ubuntu-latest steps: + - name: Checkout base branch for PR + if: github.event_name == 'pull_request' + uses: actions/checkout@v4 + with: + ref: ${{ github.base_ref }} + - name: Checkout uses: actions/checkout@v4 diff --git a/.github/workflows/test-coding-standards.yml b/.github/workflows/test-coding-standards.yml index f30475a76dba..a1e2c4770296 100644 --- a/.github/workflows/test-coding-standards.yml +++ b/.github/workflows/test-coding-standards.yml @@ -32,6 +32,12 @@ jobs: - '8.3' steps: + - name: Checkout base branch for PR + if: github.event_name == 'pull_request' + uses: actions/checkout@v4 + with: + ref: ${{ github.base_ref }} + - name: Checkout uses: actions/checkout@v4 diff --git a/.github/workflows/test-deptrac.yml b/.github/workflows/test-deptrac.yml index fecb289b1b63..d96f8f27ef00 100644 --- a/.github/workflows/test-deptrac.yml +++ b/.github/workflows/test-deptrac.yml @@ -36,6 +36,12 @@ jobs: name: Architectural Inspection runs-on: ubuntu-22.04 steps: + - name: Checkout base branch for PR + if: github.event_name == 'pull_request' + uses: actions/checkout@v4 + with: + ref: ${{ github.base_ref }} + - name: Checkout uses: actions/checkout@v4 diff --git a/.github/workflows/test-phpstan.yml b/.github/workflows/test-phpstan.yml index aca331f30481..b5e93d699063 100644 --- a/.github/workflows/test-phpstan.yml +++ b/.github/workflows/test-phpstan.yml @@ -45,6 +45,12 @@ jobs: strategy: fail-fast: false steps: + - name: Checkout base branch for PR + if: github.event_name == 'pull_request' + uses: actions/checkout@v4 + with: + ref: ${{ github.base_ref }} + - name: Checkout uses: actions/checkout@v4 diff --git a/.github/workflows/test-psalm.yml b/.github/workflows/test-psalm.yml index b1f5891a46d9..ea948ab3bc65 100644 --- a/.github/workflows/test-psalm.yml +++ b/.github/workflows/test-psalm.yml @@ -27,6 +27,12 @@ jobs: if: (! contains(github.event.head_commit.message, '[ci skip]')) steps: + - name: Checkout base branch for PR + if: github.event_name == 'pull_request' + uses: actions/checkout@v4 + with: + ref: ${{ github.base_ref }} + - name: Checkout uses: actions/checkout@v4 diff --git a/.github/workflows/test-rector.yml b/.github/workflows/test-rector.yml index 286ca76cab42..0835d09edaf0 100644 --- a/.github/workflows/test-rector.yml +++ b/.github/workflows/test-rector.yml @@ -47,6 +47,12 @@ jobs: matrix: php-versions: ['8.1', '8.3'] steps: + - name: Checkout base branch for PR + if: github.event_name == 'pull_request' + uses: actions/checkout@v4 + with: + ref: ${{ github.base_ref }} + - name: Checkout uses: actions/checkout@v4