Added `all-tests` label to run full test suite on a PR

no issue
This commit is contained in:
Daniel Lockyer 2020-03-19 19:19:00 +00:00
parent ba430d989a
commit 453bcc5030
1 changed files with 8 additions and 1 deletions

View File

@ -35,9 +35,16 @@ jobs:
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- uses: Dreamcodeio/pr-has-label-action@master
id: allTestsLabel
if: github.event_name == 'pull_request'
with:
label: all-tests
- run: yarn
- run: yarn lint
- run: grunt test-acceptance --verbose
- run: grunt test-unit --verbose
- run: grunt test-regression --verbose
if: startsWith(github.head_ref, 'renovate/') || github.event_name != 'pull_request'
if: startsWith(github.head_ref, 'renovate/') || github.event_name != 'pull_request' || steps.allTestsLabel.outputs.hasLabel