-
Notifications
You must be signed in to change notification settings - Fork 10
114 lines (94 loc) · 2.41 KB
/
tests.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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
name: Pinot Client Go Tests
on:
push:
branches:
- master
paths-ignore:
- "**.md"
pull_request:
branches:
- master
paths-ignore:
- "**.md"
jobs:
golangci:
runs-on: ubuntu-latest
name: Linter
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.19
cache: false
- name: Linter
uses: golangci/golangci-lint-action@v4
unit-tests:
runs-on: ubuntu-latest
name: Unit Tests
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.19
- name: Before Install
run: make setup
- name: Build
run: make build
- name: Test
run: make test
- name: Convert coverage to lcov
uses: jandelgado/gcov2lcov-action@v1.0.9
with:
infile: profile.cov
outfile: coverage.lcov
- name: Publish to coveralls.io
uses: coverallsapp/github-action@v2
with:
github-token: ${{ github.token }}
path-to-lcov: coverage.lcov
flag-name: unit
allow-empty: true
integration-tests:
runs-on: ubuntu-latest
name: Integration Tests
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.19
- name: Before Install
run: make setup
- name: Build
run: make build
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: "adopt"
- name: Set up Pinot Cluster
run: make run-pinot-dist
env:
PINOT_VERSION: 1.0.0
PINOT_HOME: /tmp/pinot
CONTROLLER_PORT_FORWARD: 9000
BROKER_PORT_FORWARD: 8000
- name: Integration Test
run: make integration-test
env:
ZOOKEEPER_PORT: 2123
CONTROLLER_PORT: 9000
BROKER_PORT: 8000
- name: Convert coverage to lcov
uses: jandelgado/gcov2lcov-action@v1.0.9
with:
infile: profile.cov
outfile: coverage.lcov
- name: Publish to coveralls.io
uses: coverallsapp/github-action@v2
with:
github-token: ${{ github.token }}
path-to-lcov: coverage.lcov
flag-name: integration
allow-empty: true