PromucFlow_constructor/.github/workflows/CypressAddKnownfailedtests.yml
yatinappsmith 876cd428f9
ci: Comment failing tests to PR (#18450)
## Description

Comment failing tests to PR

Fixes # 



## Type of change

- New feature (non-breaking change which adds functionality)


## How Has This Been Tested?
Code review. Tested in local fork

### Test Plan
> Add Testsmith test cases links that relate to this PR

### Issues raised during DP testing
> Link issues raised during DP testing for better visiblity and tracking (copy link from comments dropped on this PR)


## Checklist:
### Dev activity
- [X] My code follows the style guidelines of this project
- [X] I have performed a self-review of my own code
- [X] I have commented my code, particularly in hard-to-understand areas
- [X] I have made corresponding changes to the documentation
- [X] My changes generate no new warnings
- [X] I have added tests that prove my fix is effective or that my feature works
- [X] New and existing unit tests pass locally with my changes
- [X] PR is being merged under a feature flag


### QA activity:
- [ ] Test plan has been approved by relevant developers
- [ ] Test plan has been peer reviewed by QA
- [ ] Cypress test cases have been added and approved by either SDET or manual QA
- [ ] Organized project review call with relevant stakeholders after Round 1/2 of QA
- [ ] Added Test Plan Approved label after reveiwing all Cypress test
2022-12-19 16:23:39 +05:30

53 lines
1.8 KiB
YAML

name: Cypress Add Known failed tests
on:
issues:
types: [opened, closed]
jobs:
IssueOpened:
if: github.event.action == 'opened' && contains( github.event.issue.labels.*.name, 'cypress_failed_test')
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: Checkout the merged commit from PR and base branch
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: View issue information
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
XATATOKEN: ${{ secrets.XATA_TOKEN }}
run: |
echo "Issue title: ${{ github.event.issue.title }}"
echo "Issue body: ${{ github.event.issue.body }}"
#echo "$GITHUB_CONTEXT"
chmod a+x app/client/cypress/xataadd.sh
echo "${{ github.event.issue.title }}"|awk '{print $2}'
echo "${{ github.event.issue.title }}"|awk '{print $2}'|xargs app/client/cypress/xataadd.sh
IssueClosed:
if: github.event.action == 'closed' && contains( github.event.issue.labels.*.name, 'cypress_failed_test')
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: Checkout the merged commit from PR and base branch
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: View issue information
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
XATATOKEN: ${{ secrets.XATA_TOKEN }}
run: |
echo "Issue title: ${{ github.event.issue.title }}"
echo "Issue body: ${{ github.event.issue.body }}"
#echo "$GITHUB_CONTEXT"
chmod a+x app/client/cypress/xatadel.sh
echo "${{ github.event.issue.title }}"|awk '{print $2}'|xargs app/client/cypress/xatadel.sh