Skip to content

refactor: add reusable workflows to build, test and release oceanbase-ce #98

refactor: add reusable workflows to build, test and release oceanbase-ce

refactor: add reusable workflows to build, test and release oceanbase-ce #98

name: test oceanbase-ce
on:
pull_request:
paths:
- '.github/workflows/reusable/build-oceanbase-ce-image.yml'
- '.github/workflows/reusable/test-oceanbase-ce-container.yml'
- '.github/workflows/test-oceanbase-ce.yml'
- 'oceanbase-ce/**'
- 'test/**/OceanBaseCETest.java'
concurrency:
group: test-oceanbase-ce-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
uses: ./.github/workflows/reusable/build-oceanbase-ce-image.yml

Check failure on line 18 in .github/workflows/test-oceanbase-ce.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/test-oceanbase-ce.yml

Invalid workflow file

invalid value workflow reference: workflows must be defined at the top level of the .github/workflows/ directory
with:
cache_key: test-oceanbase-ce
image_file: oceanbase-ce.tar
version: 4.3.2.0-100000092024072912
test-slim:
needs: build
uses: ./.github/workflows/reusable/test-oceanbase-ce-container.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/reusable/test-oceanbase-ce-container.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');"