Skip to content

Commit

Permalink
111
Browse files Browse the repository at this point in the history
  • Loading branch information
dengfuping committed Dec 2, 2024
1 parent bb7bff2 commit 4a4214d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/basic-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@ on:
module:
type: string
required: true
description: 'The name of sample project.'
description: "The name of sample project."
language:
type: string
required: true
description: 'The programming language used by the sample project.'
description: "The programming language used by the sample project."
with_oceanbase_container:
type: boolean
required: false
description: 'Whether to use a pre-deployed OceanBase container in CI workflow.'
description: "Whether to use a pre-deployed OceanBase container in CI workflow."
default: true
oceanbase_image_tag:
type: string
required: false
description: 'The tag of OceanBase CE Docker image.'
description: "The tag of OceanBase CE Docker image."

concurrency:
group: basic-ci-${{ github.event.pull_request.number || github.ref }}-${{ inputs.module }}
Expand All @@ -35,14 +35,14 @@ jobs:
if: ${{ inputs.language == 'golang' }}
uses: actions/setup-go@v4
with:
go-version: '1.20'
go-version: "1.20"
- name: Setup Java env
if: ${{ inputs.language == 'java' }}
uses: actions/setup-java@v4
with:
java-version: '8'
distribution: 'zulu'
cache: 'maven'
java-version: "8"
distribution: "zulu"
cache: "maven"
- name: Setup Python env
if: ${{ inputs.language == 'python' }}
uses: actions/setup-python@v4
Expand All @@ -58,8 +58,8 @@ jobs:
if: ${{ inputs.with_oceanbase_container }}
uses: oceanbase/setup-oceanbase-ce@v1
with:
network: 'host'
image_tag: ${{ inputs.oceanbase_image_tag }}
network: "host"
image_tag: ${{ inputs.oceanbase_image_tag || '' }}
- name: Run sample for ${{ inputs.module }}
run: |
cd ${{ inputs.language }}/${{ inputs.module }} || exit
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/javascript.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ jobs:
language: "javascript"
module: ${{ matrix.module.name }}
with_oceanbase_container: ${{ matrix.module.with_oceanbase_container }}
oceanbase_image_tag: ${{ matrix.module.oceanbase_image_tag || 'latest'}}
oceanbase_image_tag: ${{ matrix.module.oceanbase_image_tag }}

0 comments on commit 4a4214d

Please sign in to comment.