-
Notifications
You must be signed in to change notification settings - Fork 213
44 lines (35 loc) · 1.13 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
name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build-and-test:
runs-on: ubuntu-latest
strategy:
matrix:
go: [~1.22, ^1]
steps:
- uses: actions/checkout@v2
- name: Setup | Download HBase
run: |
ver=2.4.8 &&
wget -nv https://archive.apache.org/dist/hbase/$ver/hbase-$ver-bin.tar.gz &&
echo "2CCB816619FA651E72BF7C110FC2455705654276CFEBE067A7B9D8B39641A8A8BB827BE6EBBB7CE9D6A8441B60B6836FF3A3CA2C394952D688621F8B22F9C310 hbase-$ver-bin.tar.gz" | sha512sum --strict --check - &&
tar zxf hbase-$ver-bin.tar.gz --exclude=docs &&
ln -s hbase-$ver hbase
- name: Setup | Start HBase
run: hbase/bin/hbase-daemon.sh --config hbase/conf start master
- name: Setup | Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
- name: Build
run: go build -v ./...
- name: Check
run: make check
- name: Test
run: make integration_cover HBASE_HOME=hbase
- name: Upload to Codecov
uses: codecov/[email protected]