forked from oceanbase/ob-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(ci): split ci jobs to different workflow (oceanbase#66)
- Loading branch information
Showing
9 changed files
with
197 additions
and
133 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
name: Application CI | ||
|
||
on: | ||
push: | ||
paths: | ||
- '.github/workflows/application.yml' | ||
- 'applications/**' | ||
pull_request: | ||
paths: | ||
- '.github/workflows/application.yml' | ||
- 'applications/**' | ||
|
||
jobs: | ||
hertzbeat: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup Java Env | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: '17' | ||
distribution: 'zulu' | ||
cache: 'maven' | ||
- name: Start OceanBase container | ||
uses: oceanbase/setup-oceanbase-ce@v1 | ||
with: | ||
network: 'host' | ||
- name: Build and Test | ||
run: | | ||
cd applications/hertzbeat | ||
mvn clean test | ||
sveltekit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v4 | ||
- name: Setup Node.js env | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 21 | ||
cache: 'npm' | ||
cache-dependency-path: applications/sveltekit | ||
- uses: pnpm/action-setup@v4 | ||
name: Setup pnpm | ||
with: | ||
version: 8 | ||
run_install: false | ||
- name: Build and run sample | ||
run: | | ||
cd applications/sveltekit | ||
pnpm install | ||
mydata: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v4 | ||
- name: Set Go env | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: '1.20' | ||
- name: Build and run sample | ||
run: | | ||
cd applications/mydata | ||
make && ./dist/mydata exp -h |
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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Golang CI | ||
|
||
on: | ||
push: | ||
paths: | ||
- '.github/workflows/golang.yml' | ||
- 'golang/**' | ||
pull_request: | ||
paths: | ||
- '.github/workflows/golang.yml' | ||
- 'golang/**' | ||
|
||
jobs: | ||
ci: | ||
strategy: | ||
matrix: | ||
module: | ||
- name: 'go-sql-driver' | ||
with_oceanbase_container: true | ||
- name: 'gorm' | ||
with_oceanbase_container: true | ||
uses: ./.github/workflows/basic-workflow.yml | ||
with: | ||
language: 'golang' | ||
module: ${{ matrix.module.name }} | ||
with_oceanbase_container: ${{ matrix.module.with_oceanbase_container }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Java CI | ||
|
||
on: | ||
push: | ||
paths: | ||
- '.github/workflows/java.yml' | ||
- 'java/**' | ||
pull_request: | ||
paths: | ||
- '.github/workflows/java.yml' | ||
- 'java/**' | ||
|
||
jobs: | ||
ci: | ||
strategy: | ||
matrix: | ||
module: | ||
- name: 'mybatis' | ||
with_oceanbase_container: true | ||
- name: 'mybatis-plus' | ||
with_oceanbase_container: false | ||
- name: 'mysql-connector-java' | ||
with_oceanbase_container: true | ||
- name: 'oceanbase-client' | ||
with_oceanbase_container: true | ||
- name: 'spring-jdbc' | ||
with_oceanbase_container: true | ||
- name: 'springboot' | ||
with_oceanbase_container: true | ||
- name: 'testcontainers-java' | ||
with_oceanbase_container: false | ||
uses: ./.github/workflows/basic-workflow.yml | ||
with: | ||
language: 'java' | ||
module: ${{ matrix.module.name }} | ||
with_oceanbase_container: ${{ matrix.module.with_oceanbase_container }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Python CI | ||
|
||
on: | ||
push: | ||
paths: | ||
- '.github/workflows/python.yml' | ||
- 'python/**' | ||
pull_request: | ||
paths: | ||
- '.github/workflows/python.yml' | ||
- 'python/**' | ||
|
||
jobs: | ||
ci: | ||
strategy: | ||
matrix: | ||
module: | ||
- name: 'mysql-connector-python' | ||
with_oceanbase_container: true | ||
- name: 'pymysql' | ||
with_oceanbase_container: true | ||
- name: 'sqlalchemy' | ||
with_oceanbase_container: true | ||
uses: ./.github/workflows/basic-workflow.yml | ||
with: | ||
language: 'python' | ||
module: ${{ matrix.module.name }} | ||
with_oceanbase_container: ${{ matrix.module.with_oceanbase_container }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Ruby CI | ||
|
||
on: | ||
push: | ||
paths: | ||
- '.github/workflows/ruby.yml' | ||
- 'ruby/**' | ||
pull_request: | ||
paths: | ||
- '.github/workflows/ruby.yml' | ||
- 'ruby/**' | ||
|
||
jobs: | ||
ci: | ||
strategy: | ||
matrix: | ||
module: | ||
- name: 'activerecord' | ||
with_oceanbase_container: true | ||
- name: 'mysql2' | ||
with_oceanbase_container: true | ||
- name: 'sequel' | ||
with_oceanbase_container: true | ||
uses: ./.github/workflows/basic-workflow.yml | ||
with: | ||
language: 'ruby' | ||
module: ${{ matrix.module.name }} | ||
with_oceanbase_container: ${{ matrix.module.with_oceanbase_container }} |
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
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