I am using GitHub actions for cypress to run in PR env. But workflow is not grabbing latest cypress test scripts. We need to run cypress tests on PR branch also. Can anyone help? I am using this, but its not taking the latest test scripts
enter code here
on:
workflow_call:
inputs:
pr-number:
description: Pull request number
required: true
type: string
pr_branch:
required: true
type: string
secrets:
Username:
required: true
Password:
required: true
jobs:
cypress-run:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ inputs.pr_branch }} # Uses the PR branch from input
fetch-depth: 0 # Ensures the full history is fetched```