-
Notifications
You must be signed in to change notification settings - Fork 22
93 lines (90 loc) · 2.52 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
name: CI
on:
push:
paths-ignore:
- 'docs/**'
- '**.md'
- '.*'
pull_request:
paths-ignore:
- 'docs/**'
- '**.md'
- '.*'
jobs:
basic:
strategy:
matrix:
module:
- name: 'go-sql-driver'
language: 'golang'
with_oceanbase_container: true
- name: 'mysql-connector-java'
language: 'java'
with_oceanbase_container: true
- name: 'oceanbase-client'
language: 'java'
with_oceanbase_container: true
- name: 'testcontainers-java'
language: 'java'
with_oceanbase_container: false
- name: 'pymysql'
language: 'python'
with_oceanbase_container: true
- name: 'mysql-connector-python'
language: 'python'
with_oceanbase_container: true
- name: 'mybatis-plus'
language: 'java'
with_oceanbase_container: false
- name: 'mybatis'
language: 'java'
with_oceanbase_container: true
- name: 'spring-jdbc'
language: 'java'
with_oceanbase_container: true
- name: 'springboot'
language: 'java'
with_oceanbase_container: true
uses: ./.github/workflows/basic-workflow.yml
with:
module: ${{ matrix.module.name }}
language: ${{ matrix.module.language }}
with_oceanbase_container: ${{ matrix.module.with_oceanbase_container }}
application-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
application-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