update workflow to handle the two mode with different step

This commit is contained in:
Feng Chao 2025-03-17 13:46:19 +08:00
parent 60498503b2
commit ed98b27db8
1 changed files with 54 additions and 3 deletions

View File

@ -17,9 +17,23 @@ on:
- 'tests/parallel/tdgpt_cases.task'
- 'tests/script/tsim/analytics'
- '**/*.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:
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
env:
@ -28,17 +42,54 @@ env:
jobs:
run-tests-on-linux:
uses: taosdata/.github/.github/workflows/run-tests-on-linux.yml@main
if: ${{ github.event_name == 'pull_request' }}
with:
tdinternal: false
run_function_test: true
run_tdgpt_test: false
specified_source_branch: 'unavailable'
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:
uses: taosdata/.github/.github/workflows/run-tests-on-macos.yml@main
if: ${{ github.event_name == 'pull_request' }}
with:
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:
uses: taosdata/.github/.github/workflows/run-tests-on-windows.yml@main
if: ${{ github.event_name == 'pull_request' }}
with:
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 }}