chore(trading): separate workflow for lint-pr (#4904)
This commit is contained in:
parent
1f507facba
commit
7453acd632
8
.github/workflows/ci-cd-trigger.yml
vendored
8
.github/workflows/ci-cd-trigger.yml
vendored
@ -10,7 +10,6 @@ on:
|
|||||||
- opened
|
- opened
|
||||||
- ready_for_review
|
- ready_for_review
|
||||||
- reopened
|
- reopened
|
||||||
- edited
|
|
||||||
- synchronize
|
- synchronize
|
||||||
jobs:
|
jobs:
|
||||||
node-modules:
|
node-modules:
|
||||||
@ -44,13 +43,6 @@ jobs:
|
|||||||
if: steps.cache.outputs.cache-hit != 'true'
|
if: steps.cache.outputs.cache-hit != 'true'
|
||||||
run: yarn install --pure-lockfile
|
run: yarn install --pure-lockfile
|
||||||
|
|
||||||
lint-pr-title:
|
|
||||||
needs: node-modules
|
|
||||||
if: ${{ github.event_name == 'pull_request' }}
|
|
||||||
name: Verify PR title
|
|
||||||
uses: ./.github/workflows/lint-pr.yml
|
|
||||||
secrets: inherit
|
|
||||||
|
|
||||||
lint-format:
|
lint-format:
|
||||||
timeout-minutes: 20
|
timeout-minutes: 20
|
||||||
needs: node-modules
|
needs: node-modules
|
||||||
|
5
.github/workflows/lint-pr.yml
vendored
5
.github/workflows/lint-pr.yml
vendored
@ -2,7 +2,10 @@
|
|||||||
name: Verify PR title
|
name: Verify PR title
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
pull_request:
|
||||||
|
types:
|
||||||
|
- opened
|
||||||
|
- edited
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint_pr:
|
lint_pr:
|
||||||
|
Loading…
Reference in New Issue
Block a user