mirror of
https://github.com/yogeshpaliyal/KeyPass.git
synced 2026-01-05 16:36:31 -06:00
Update pr-check.yaml
This commit is contained in:
committed by
GitHub
parent
9bbfef35e7
commit
5156d6cfb9
16
.github/workflows/pr-check.yaml
vendored
16
.github/workflows/pr-check.yaml
vendored
@@ -3,10 +3,24 @@ name: PR Check
|
||||
on:
|
||||
pull_request:
|
||||
types: [ ready_for_review ]
|
||||
issue_comment:
|
||||
types: [created, edited, deleted]
|
||||
|
||||
|
||||
jobs:
|
||||
|
||||
validatePr:
|
||||
name: 'Validate PR comment'
|
||||
if: contains(github.event.comment.html_url, '/pull/') # check if the comments come from pull request, exclude those from issue.
|
||||
runs-on: [re-centos7]
|
||||
steps:
|
||||
- name: test
|
||||
if: contains(github.event.comment.body, '/test') # check the comment if it contains the keywords
|
||||
run: |
|
||||
echo test
|
||||
|
||||
spotless:
|
||||
needs: validatePr
|
||||
name: 'Spotless'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
@@ -21,6 +35,7 @@ jobs:
|
||||
|
||||
tests:
|
||||
name: 'Tests'
|
||||
needs: validatePr
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
||||
@@ -34,6 +49,7 @@ jobs:
|
||||
|
||||
build:
|
||||
name: 'Build Production Debug Build'
|
||||
needs: validatePr
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user