ci: run tests on pr ref instead of base branch

This commit is contained in:
Abdullah Atta
2025-07-21 11:38:30 +05:00
parent f90e7982f7
commit 5151d83af9
2 changed files with 6 additions and 0 deletions

View File

@@ -36,6 +36,8 @@ jobs:
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha || github.ref }}
- name: Setup Node - name: Setup Node
uses: ./.github/actions/setup-node-with-cache uses: ./.github/actions/setup-node-with-cache

View File

@@ -38,6 +38,8 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha || github.ref }}
- name: Setup Node - name: Setup Node
uses: ./.github/actions/setup-node-with-cache uses: ./.github/actions/setup-node-with-cache
@@ -69,6 +71,8 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha || github.ref }}
- name: Download build - name: Download build
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4