Skip to content

Alleviate flaky cypress tests #4532

Alleviate flaky cypress tests

Alleviate flaky cypress tests #4532

Workflow file for this run

name: Pull Request
on: [pull_request]
jobs:
prchecks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- uses: pre-commit/action@v3.0.1
- uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
- name: run unit tests
run: ./scripts/test-unit.sh
assignAuthor:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Assign PR to Creator
run: |
if [ "$PR_AUTHOR_TYPE" != "Bot" ]
then
gh pr edit $PRNUM --add-assignee $PR_AUTHOR
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PRNUM: ${{ github.event.pull_request.number }}
PR_AUTHOR: ${{ github.event.pull_request.user.login }}
PR_AUTHOR_TYPE: ${{ github.event.pull_request.user.type }}
#Notify the integrations channel only when a Snyk auto merge fails pr checks
notify_on_pr_failure:
runs-on: ubuntu-latest
needs:
- prchecks
#only check branch names that begin with snyk-
if: ${{ failure() && startsWith(github.head_ref, 'snyk-') }}
steps:
- name: Slack Notification
uses: rtCamp/action-slack-notify@v2
env:
SLACK_TITLE: ":boom: A Synk auto merge has failed pull request checks in ${{ github.repository }}."
MSG_MINIMAL: true
SLACK_WEBHOOK: ${{ secrets.INTEGRATIONS_SLACK_WEBHOOK }}