update workflow to handle the two mode with different step
This commit is contained in:
parent
60498503b2
commit
ed98b27db8
|
@ -17,9 +17,23 @@ on:
|
||||||
- 'tests/parallel/tdgpt_cases.task'
|
- 'tests/parallel/tdgpt_cases.task'
|
||||||
- 'tests/script/tsim/analytics'
|
- 'tests/script/tsim/analytics'
|
||||||
- '**/*.md'
|
- '**/*.md'
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
specified_source_branch:
|
||||||
|
description: 'Enter the source branch name of TDengine'
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
specified_target_branch:
|
||||||
|
description: 'Enter the target branch name of TDengine'
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
specified_pr_number:
|
||||||
|
description: 'Enter the PR number of TDengine'
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}-TDengine
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}-${{ github.event.inputs.specified_target_branch }}-${{ github.event.inputs.specified_pr_number }}-TDengine
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
env:
|
env:
|
||||||
|
@ -28,17 +42,54 @@ env:
|
||||||
jobs:
|
jobs:
|
||||||
run-tests-on-linux:
|
run-tests-on-linux:
|
||||||
uses: taosdata/.github/.github/workflows/run-tests-on-linux.yml@main
|
uses: taosdata/.github/.github/workflows/run-tests-on-linux.yml@main
|
||||||
|
if: ${{ github.event_name == 'pull_request' }}
|
||||||
with:
|
with:
|
||||||
tdinternal: false
|
tdinternal: false
|
||||||
run_function_test: true
|
specified_source_branch: 'unavailable'
|
||||||
run_tdgpt_test: false
|
specified_target_branch: 'unavailable'
|
||||||
|
specified_pr_number: 'unavailable'
|
||||||
|
|
||||||
|
run-tests-on-linux-manually:
|
||||||
|
uses: taosdata/.github/.github/workflows/run-tests-on-linux.yml@main
|
||||||
|
if: ${{ github.event_name == 'workflow_dispatch' }}
|
||||||
|
with:
|
||||||
|
tdinternal: false
|
||||||
|
specified_source_branch: ${{ github.event.inputs.specified_source_branch }}
|
||||||
|
specified_target_branch: ${{ github.event.inputs.specified_target_branch }}
|
||||||
|
specified_pr_number: ${{ github.event.inputs.specified_pr_number }}
|
||||||
|
|
||||||
run-tests-on-mac:
|
run-tests-on-mac:
|
||||||
uses: taosdata/.github/.github/workflows/run-tests-on-macos.yml@main
|
uses: taosdata/.github/.github/workflows/run-tests-on-macos.yml@main
|
||||||
|
if: ${{ github.event_name == 'pull_request' }}
|
||||||
with:
|
with:
|
||||||
tdinternal: false
|
tdinternal: false
|
||||||
|
specified_source_branch: 'unavailable'
|
||||||
|
specified_target_branch: 'unavailable'
|
||||||
|
specified_pr_number: 'unavailable'
|
||||||
|
|
||||||
|
run-tests-on-mac-munually:
|
||||||
|
uses: taosdata/.github/.github/workflows/run-tests-on-macos.yml@main
|
||||||
|
if: ${{ github.event_name == 'workflow_dispatch' }}
|
||||||
|
with:
|
||||||
|
tdinternal: false
|
||||||
|
specified_source_branch: ${{ github.event.inputs.specified_source_branch }}
|
||||||
|
specified_target_branch: ${{ github.event.inputs.specified_target_branch }}
|
||||||
|
specified_pr_number: ${{ github.event.inputs.specified_pr_number }}
|
||||||
|
|
||||||
run-tests-on-windows:
|
run-tests-on-windows:
|
||||||
uses: taosdata/.github/.github/workflows/run-tests-on-windows.yml@main
|
uses: taosdata/.github/.github/workflows/run-tests-on-windows.yml@main
|
||||||
|
if: ${{ github.event_name == 'pull_request' }}
|
||||||
with:
|
with:
|
||||||
tdinternal: false
|
tdinternal: false
|
||||||
|
specified_source_branch: 'unavailable'
|
||||||
|
specified_target_branch: 'unavailable'
|
||||||
|
specified_pr_number: 'unavailable'
|
||||||
|
|
||||||
|
run-tests-on-windows-manually:
|
||||||
|
uses: taosdata/.github/.github/workflows/run-tests-on-windows.yml@main
|
||||||
|
if: ${{ github.event_name == 'workflow_dispatch' }}
|
||||||
|
with:
|
||||||
|
tdinternal: false
|
||||||
|
specified_source_branch: ${{ github.event.inputs.specified_source_branch }}
|
||||||
|
specified_target_branch: ${{ github.event.inputs.specified_target_branch }}
|
||||||
|
specified_pr_number: ${{ github.event.inputs.specified_pr_number }}
|
||||||
|
|
Loading…
Reference in New Issue