-
Notifications
You must be signed in to change notification settings - Fork 17
76 lines (65 loc) · 2.31 KB
/
unit-mds.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
name: "Metadata-Service-Test"
on:
pull_request:
types: [opened, reopened]
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
ZK-Test:
strategy:
fail-fast: false
matrix:
java: [8]
os: [ubuntu-latest, windows-latest, macos-13]
runs-on: ${{ matrix.os}}
env:
STORAGE: zookeeper
ZOOKEEPER_CONNECTION_STRING: 127.0.0.1:2181
steps:
- uses: actions/checkout@v4
- name: Environment dependence
uses: ./.github/actions/dependence
with:
java: ${{ matrix.java }}
scope: base
- name: Run ZooKeeper
uses: ./.github/actions/zookeeperRunner
- name: Run test for meta manager
run: mvn test -q -Dtest=IMetaManagerTest -DfailIfNoTests=false -P-format
- name: Run test for sync protocol
run: mvn test -q -Dtest=ZooKeeperSyncProtocolTest -DfailIfNoTests=false -P-format
- uses: codecov/codecov-action@v1
with:
file: ./**/target/site/jacoco/jacoco.xml
name: codecov
ETCD-Test:
strategy:
fail-fast: false
max-parallel: 20
matrix:
java: [8]
os: [ubuntu-latest, windows-latest, macos-13]
runs-on: ${{ matrix.os}}
env:
STORAGE: etcd
ETCD_ENDPOINTS: http://localhost:2379
steps:
- uses: actions/checkout@v4
- name: Environment dependence
uses: ./.github/actions/dependence
with:
java: ${{ matrix.java }}
scope: base
- name: Run ETCD
uses: ./.github/actions/etcdRunner
- name: Run test for meta manager
run: mvn test -q -Dtest=IMetaManagerTest -DfailIfNoTests=false -P-format
- name: Run test for sync protocol
run: mvn test -q -Dtest=ETCDSyncProtocolTest -DfailIfNoTests=false -P-format
- uses: codecov/codecov-action@v1
with:
file: ./**/target/site/jacoco/jacoco.xml
name: codecov