Skip to content

Dynamic loader RP - [MOD-6573] #2128

Dynamic loader RP - [MOD-6573]

Dynamic loader RP - [MOD-6573] #2128

name: Pull Request Flow
# Documentation: https://redislabs.atlassian.net/wiki/spaces/DX/pages/3967844669/RediSearch+CI+refactor
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review] # Defaults + ready_for_review
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
get-latest-redis-tag:
uses: ./.github/workflows/task-get-latest-tag.yml
with:
repo: redis/redis
docs-only: # Check whether the PR is only modifying docs
uses: ./.github/workflows/task-check-docs.yml
basic-test:
needs: [docs-only, get-latest-redis-tag]
if: needs.docs-only.outputs.only-docs-changed == 'false'
uses: ./.github/workflows/task-test.yml
with:
env: ubuntu-latest
test-config: QUICK=1
get-redis: ${{ needs.get-latest-redis-tag.outputs.tag }}
secrets: inherit
coverage:
needs: docs-only
if: ${{ needs.docs-only.outputs.only-docs-changed == 'false' && !github.event.pull_request.draft }}
uses: ./.github/workflows/flow-coverage.yml
secrets: inherit
sanitize:
needs: docs-only
if: ${{ needs.docs-only.outputs.only-docs-changed == 'false' && !github.event.pull_request.draft }}
uses: ./.github/workflows/flow-sanitizer.yml
secrets: inherit
with:
flow-config: QUICK=1
pr-validation:
needs:
- docs-only # if the setup jobs fail, the rest of the jobs will be skipped, and we will exit with a failure
- get-latest-redis-tag
- basic-test
- coverage
- sanitize
runs-on: ubuntu-latest
if: ${{ !cancelled() }}
steps:
- if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')
run: exit 1