<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Chores** - Updated GitHub Actions workflows to use `actions/checkout@v4` for improved performance and reliability. - Removed `fetch-depth` parameter to simplify checkout steps across various workflows. - Standardized quote usage for consistency in workflow files. - **Documentation** - Adjusted formatting and descriptions in workflow files for better clarity and readability. - **Refactor** - Aligned multiple workflow files to follow a consistent structure and naming convention. <!-- end of auto-generated comment: release notes by coderabbit.ai --> fetch-depth 0 causes the Github workflow to checkout the entire Git history. This is not required. We only need to check out the head of the commit. By default, actions/checkout has fetch-depth=1, hence removing it from the workflow completely for simplicity.
52 lines
1.8 KiB
YAML
52 lines
1.8 KiB
YAML
name: Cypress Add Known failed tests
|
|
|
|
on:
|
|
issues:
|
|
types: [opened, closed, reopened]
|
|
|
|
jobs:
|
|
IssueOpened:
|
|
if: (github.event.action == 'opened' || github.event.action == 'reopened') && contains( github.event.issue.labels.*.name, 'CI impacted')
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
issues: write
|
|
steps:
|
|
- name: Checkout the merged commit from PR and base branch
|
|
uses: actions/checkout@v2
|
|
|
|
- name: View issue information
|
|
env:
|
|
GITHUB_CONTEXT: ${{ toJson(github) }}
|
|
XATATOKEN: ${{ secrets.XATA_TOKEN }}
|
|
ISSUE_TITLE: ${{ github.event.issue.title }}
|
|
ISSUE_BODY: ${{ github.event.issue.body }}
|
|
run: |
|
|
echo "Issue title: $ISSUE_TITLE"
|
|
echo "Issue body: $ISSUE_BODY"
|
|
#echo "$GITHUB_CONTEXT"
|
|
chmod a+x app/client/cypress/xataadd.sh
|
|
echo "$ISSUE_TITLE"|awk '{print $2}'
|
|
echo "$ISSUE_TITLE"|awk '{print $2}'|xargs app/client/cypress/xataadd.sh
|
|
|
|
IssueClosed:
|
|
if: github.event.action == 'closed' && contains( github.event.issue.labels.*.name, 'CI impacted')
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
issues: write
|
|
steps:
|
|
- name: Checkout the merged commit from PR and base branch
|
|
uses: actions/checkout@v2
|
|
|
|
- name: View issue information
|
|
env:
|
|
GITHUB_CONTEXT: ${{ toJson(github) }}
|
|
XATATOKEN: ${{ secrets.XATA_TOKEN }}
|
|
ISSUE_TITLE: ${{ github.event.issue.title }}
|
|
ISSUE_BODY: ${{ github.event.issue.body }}
|
|
run: |
|
|
echo "Issue title: $ISSUE_TITLE"
|
|
echo "Issue body: $ISSUE_BODY"
|
|
#echo "$GITHUB_CONTEXT"
|
|
chmod a+x app/client/cypress/xatadel.sh
|
|
echo "$ISSUE_TITLE"|awk '{print $2}'|xargs app/client/cypress/xatadel.sh
|