region: Add BenchmarkReceive #268
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
go: [~1.22, ^1] | |
steps: | |
- uses: actions/checkout@v4 | |
- 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 | Config HBase | |
# quick and dirty sed script to insert config into | |
# hbase-site.xml. | |
# | |
# Set scanner timeout to 5s from default of 60s, to make tests | |
# for scanner expiration faster. | |
run: | | |
sed -i '/<\/configuration>/i \ | |
<property><name>hbase.client.scanner.timeout.period</name><value>5000</value></property> | |
' hbase/conf/hbase-site.xml | |
- name: Setup | Start HBase | |
run: hbase/bin/hbase-daemon.sh --config hbase/conf start master | |
- name: Setup | Go | |
uses: actions/setup-go@v5 | |
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] | |
- name: Upload HBase logs | |
uses: actions/upload-artifact@v4 | |
if: ${{ failure() }} | |
with: | |
name: hbase-logs | |
path: hbase/logs/ |