Added check for cypress tests in PR (#8454)
This commit is contained in:
parent
5a80e9b014
commit
e9ffc67f79
17
.github/workflows/pr-labeler.yml
vendored
17
.github/workflows/pr-labeler.yml
vendored
|
|
@ -13,3 +13,20 @@ jobs:
|
||||||
- uses: appsmithorg/labeler@master
|
- uses: appsmithorg/labeler@master
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
|
|
||||||
|
- name: Get changed files using defaults
|
||||||
|
id: changed-files
|
||||||
|
uses: trilom/file-changes-action@v1.2.3
|
||||||
|
continue-on-error: true
|
||||||
|
|
||||||
|
- name: Run step when a file changes
|
||||||
|
uses: actions-ecosystem/action-create-comment@v1
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
|
if: |
|
||||||
|
contains(steps.changed-files.outputs.files_modified, 'cypress') == false &&
|
||||||
|
contains(steps.changed-files.outputs.files_modified, 'test') == false
|
||||||
|
with:
|
||||||
|
github_token: ${{ secrets.github_token }}
|
||||||
|
body: |
|
||||||
|
Unable to find test scripts. Please add necessary tests to the PR.
|
||||||
Loading…
Reference in New Issue
Block a user