Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

ci: run tests on pr ref instead of base branch

Abdullah Atta5151d83af9e0
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