From 5151d83af9e0b4e608ba8a9e30df72f0123eb716 Mon Sep 17 00:00:00 2001 From: Abdullah Atta Date: Mon, 21 Jul 2025 11:38:30 +0500 Subject: [PATCH] ci: run tests on pr ref instead of base branch --- .github/workflows/core.tests.yml | 2 ++ .github/workflows/web.tests.yml | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/.github/workflows/core.tests.yml b/.github/workflows/core.tests.yml index c5b813871..a146034ae 100644 --- a/.github/workflows/core.tests.yml +++ b/.github/workflows/core.tests.yml @@ -36,6 +36,8 @@ jobs: runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.sha || github.ref }} - name: Setup Node uses: ./.github/actions/setup-node-with-cache diff --git a/.github/workflows/web.tests.yml b/.github/workflows/web.tests.yml index 665d6c7e1..75e04aef4 100644 --- a/.github/workflows/web.tests.yml +++ b/.github/workflows/web.tests.yml @@ -38,6 +38,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.sha || github.ref }} - name: Setup Node uses: ./.github/actions/setup-node-with-cache @@ -69,6 +71,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.sha || github.ref }} - name: Download build uses: actions/download-artifact@v4