-
Notifications
You must be signed in to change notification settings - Fork 16
88 lines (75 loc) · 2.76 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
77
78
79
80
81
82
83
84
85
86
87
88
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@v2
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- name: Cache Maven packages
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- 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@v2
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- name: Cache Maven packages
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- 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