最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

caching - GitHub action workflow for cypress is not taking latest test scripts from PR branch - Stack Overflow

programmeradmin7浏览0评论

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```
    
发布评论

评论列表(0)

  1. 暂无评论