是否可以通过 GitHub-actions 将 Jira 票证 ID 传递给赛普拉斯,以显示给定票证的测试结果?
我正在使用手动工作流程并订阅了赛普拉斯仪表板。
谢谢。
name: GitHub Actions Cypress Test
on:
workflow_dispatch:
inputs:
JiraID:
description: 'Jira ticket ID'
default: 'SX-XXXX'
required: true
jobs:
cypress-run:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Cypress run
uses: cypress-io/github-action@v2
with:
record: true
command-prefix: 'percy exec -- npx'
env:
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}