From 4270d2287f60a6d2badae38a99ace916e4321569 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..4636ec27bc7b 100644 --- a/.github/workflows/reusable-coveralls.yml +++ b/.github/workflows/reusable-coveralls.yml @@ -16,6 +16,12 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - name: Checkout base branch for PR + if: github.event_name == 'pull_request' + uses: actions/checkout@v4 + with: + ref: ${{ github.base_ref }} + - name: Setup PHP uses: shivammathur/setup-php@v2 with: diff --git a/.github/workflows/reusable-phpunit-test.yml b/.github/workflows/reusable-phpunit-test.yml index 9758d6eb5410..83e6b03080c9 100644 --- a/.github/workflows/reusable-phpunit-test.yml +++ b/.github/workflows/reusable-phpunit-test.yml @@ -151,6 +151,12 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - name: Checkout base branch for PR + if: github.event_name == 'pull_request' + uses: actions/checkout@v4 + with: + ref: ${{ github.base_ref }} + - name: Setup PHP uses: shivammathur/setup-php@v2 with: diff --git a/.github/workflows/reusable-serviceless-phpunit-test.yml b/.github/workflows/reusable-serviceless-phpunit-test.yml index 8a9f00c5e2e6..b9dd9d4e901d 100644 --- a/.github/workflows/reusable-serviceless-phpunit-test.yml +++ b/.github/workflows/reusable-serviceless-phpunit-test.yml @@ -63,6 +63,12 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - name: Checkout base branch for PR + if: github.event_name == 'pull_request' + uses: actions/checkout@v4 + with: + ref: ${{ github.base_ref }} + - name: Setup PHP uses: shivammathur/setup-php@v2 with: diff --git a/.github/workflows/test-autoreview.yml b/.github/workflows/test-autoreview.yml index 69545ca6af01..bece91b8af87 100644 --- a/.github/workflows/test-autoreview.yml +++ b/.github/workflows/test-autoreview.yml @@ -38,6 +38,12 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - name: Checkout base branch for PR + if: github.event_name == 'pull_request' + uses: actions/checkout@v4 + with: + ref: ${{ github.base_ref }} + - name: Setup PHP uses: shivammathur/setup-php@v2 with: diff --git a/.github/workflows/test-coding-standards.yml b/.github/workflows/test-coding-standards.yml index f30475a76dba..421696186539 100644 --- a/.github/workflows/test-coding-standards.yml +++ b/.github/workflows/test-coding-standards.yml @@ -35,6 +35,12 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - name: Checkout base branch for PR + if: github.event_name == 'pull_request' + uses: actions/checkout@v4 + with: + ref: ${{ github.base_ref }} + - name: Setup PHP uses: shivammathur/setup-php@v2 with: diff --git a/.github/workflows/test-deptrac.yml b/.github/workflows/test-deptrac.yml index fecb289b1b63..33699dc59544 100644 --- a/.github/workflows/test-deptrac.yml +++ b/.github/workflows/test-deptrac.yml @@ -39,6 +39,12 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - name: Checkout base branch for PR + if: github.event_name == 'pull_request' + uses: actions/checkout@v4 + with: + ref: ${{ github.base_ref }} + - name: Setup PHP uses: shivammathur/setup-php@v2 with: diff --git a/.github/workflows/test-phpstan.yml b/.github/workflows/test-phpstan.yml index aca331f30481..329ecf711186 100644 --- a/.github/workflows/test-phpstan.yml +++ b/.github/workflows/test-phpstan.yml @@ -48,6 +48,12 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - name: Checkout base branch for PR + if: github.event_name == 'pull_request' + uses: actions/checkout@v4 + with: + ref: ${{ github.base_ref }} + - name: Setup PHP uses: shivammathur/setup-php@v2 with: diff --git a/.github/workflows/test-psalm.yml b/.github/workflows/test-psalm.yml index b1f5891a46d9..97b7b63ebcd7 100644 --- a/.github/workflows/test-psalm.yml +++ b/.github/workflows/test-psalm.yml @@ -30,6 +30,12 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - name: Checkout base branch for PR + if: github.event_name == 'pull_request' + uses: actions/checkout@v4 + with: + ref: ${{ github.base_ref }} + - name: Setup PHP uses: shivammathur/setup-php@v2 with: diff --git a/.github/workflows/test-rector.yml b/.github/workflows/test-rector.yml index 286ca76cab42..7ff84acdc54d 100644 --- a/.github/workflows/test-rector.yml +++ b/.github/workflows/test-rector.yml @@ -50,6 +50,12 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - name: Checkout base branch for PR + if: github.event_name == 'pull_request' + uses: actions/checkout@v4 + with: + ref: ${{ github.base_ref }} + - name: Setup PHP uses: shivammathur/setup-php@v2 with: