build(ci): use setup-oceanbase-ce to start oceanabse container #12
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: CI | |
on: | |
push: | |
paths-ignore: | |
- 'docs/**' | |
- '**.md' | |
- '.*' | |
pull_request: | |
paths-ignore: | |
- 'docs/**' | |
- '**.md' | |
- '.*' | |
concurrency: | |
group: ${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
golang: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
module: [ "go-sql-driver" ] | |
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: Start docker container | |
uses: oceanbase/[email protected] | |
- name: Run example for ${{ matrix.module }} | |
run: | | |
cd golang/${{ matrix.module }} | |
sh run.sh | |
java: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
module: [ "mysql-connector-java", "oceanbase-client" ] | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- name: Set JDK | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '8' | |
distribution: 'zulu' | |
cache: 'maven' | |
- name: Start docker container | |
uses: oceanbase/[email protected] | |
- name: Run example for ${{ matrix.module }} | |
run: | | |
cd java/${{ matrix.module }} | |
sh run.sh | |
python: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
module: [ "pymysql" ] | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.9" | |
- name: Start docker container | |
uses: oceanbase/[email protected] | |
- name: Run example for ${{ matrix.module }} | |
run: | | |
cd python/${{ matrix.module }} | |
sh run.sh |