make sure the oceanbase-ce container can start on general GitHub Action #95
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test oceanbase-ce | |
on: | |
pull_request: | |
paths: | |
- '.github/workflows/**-oceanbase-ce.yml' | |
- 'oceanbase-ce/Dockerfile' | |
- 'oceanbase-ce/**.sh' | |
- 'oceanbase-ce/**.yaml' | |
- 'test/**/OceanBaseCETest.java' | |
concurrency: | |
group: test-oceanbase-ce-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
uses: ./.github/workflows/build-oceanbase-ce.yml | |
with: | |
cache_key: test-oceanbase-ce | |
image_file: oceanbase-ce.tar | |
version: 4.2.1.8-108000022024072217 | |
test-slim: | |
needs: build | |
uses: ./.github/workflows/java-test-oceanbase-ce.yml | |
with: | |
cache_key: test-oceanbase-ce | |
image_file: oceanbase-ce.tar | |
mode: slim | |
port: 1234 | |
test_password: 123456 | |
init_sql: "USE test; | |
CREATE TABLE user(id INT(10) PRIMARY KEY, name VARCHAR(20)); | |
INSERT INTO user VALUES (1, 'tom'), (2, 'jerry');" | |
test-mini: | |
needs: build | |
uses: ./.github/workflows/java-test-oceanbase-ce.yml | |
with: | |
cache_key: test-oceanbase-ce | |
image_file: oceanbase-ce.tar | |
cluster_name: github-action | |
mode: mini | |
port: 1234 | |
sys_password: 1234567 | |
test_tenant: mini | |
test_password: 7654321 | |
init_sql: "USE test; | |
CREATE TABLE user(id INT(10) PRIMARY KEY, name VARCHAR(20)); | |
INSERT INTO user VALUES (1, 'tom'), (2, 'jerry');" |