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 83d591b commit 640250d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/basic-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ on:
required: false
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.'

concurrency:
group: basic-ci-${{ github.event.pull_request.number || github.ref }}-${{ inputs.module }}
Expand Down Expand Up @@ -55,6 +59,7 @@ jobs:
uses: oceanbase/setup-oceanbase-ce@v1
with:
network: 'host'
image_tag: ${{ inputs.oceanbase_image_tag }}
- name: Run sample for ${{ inputs.module }}
run: |
cd ${{ inputs.language }}/${{ inputs.module }} || exit
Expand Down
16 changes: 9 additions & 7 deletions .github/workflows/javascript.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,26 @@ name: JavaScript CI
on:
push:
paths:
- '.github/workflows/javascript.yml'
- 'javascript/**'
- ".github/workflows/javascript.yml"
- "javascript/**"
pull_request:
paths:
- '.github/workflows/javascript.yml'
- 'javascript/**'
- ".github/workflows/javascript.yml"
- "javascript/**"

jobs:
ci:
strategy:
matrix:
module:
- name: 'mysql2'
- name: "mysql2"
with_oceanbase_container: true
- name: 'prisma'
- name: "prisma"
with_oceanbase_container: true
oceanbase_image_tag: "4.2.2"
uses: ./.github/workflows/basic-workflow.yml
with:
language: 'javascript'
language: "javascript"
module: ${{ matrix.module.name }}
with_oceanbase_container: ${{ matrix.module.with_oceanbase_container }}
oceanbase_image_tag: ${{ matrix.module.oceanbase_image_tag }}

0 comments on commit 640250d

Please sign in to comment.