[Lexical ] run tests on approval if there is no extended-tests label manually added #297
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lexical Tests (Extended) | ||
on: | ||
pull_request: | ||
types: [labeled, synchronize, reopened] | ||
paths-ignore: | ||
- 'packages/lexical-website/**' | ||
- 'packages/*/README.md' | ||
- '.size-limit.js' | ||
pull_request_review: | ||
types: [submitted] | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
jobs: | ||
e2e-tests: | ||
if: (github.repository_owner == 'facebook' && contains(github.event.pull_request.labels.*.name, 'extended-tests')) || (github.event.review.state == 'approved' && !contains(github.event.pull_request.labels.*.name, 'extended-tests')) | ||
uses: ./.github/workflows/call-e2e-all-tests.yml | ||
integration-tests: | ||
if: (github.repository_owner == 'facebook' && contains(github.event.pull_request.labels.*.name, 'extended-tests')) || (github.event.review.state == 'approved' && !contains(github.event.pull_request.labels.*.name, 'extended-tests')) | ||
uses: ./.github/workflows/call-integration-tests.yml |