-
Notifications
You must be signed in to change notification settings - Fork 3
39 lines (30 loc) · 839 Bytes
/
make.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
name: test
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.22.x'
- name: Set up golangci-lint
run: sudo snap install golangci-lint --classic
- name: Get YCSB
uses: wei/wget@v1
with:
args: https://github.com/brianfrankcooper/YCSB/releases/download/0.17.0/ycsb-0.17.0.tar.gz
- name: Set up YCSB
run: tar xvfx ycsb-0.17.0.tar.gz
- name: Test
run: env CGO_ENABLED=0 YCSB_ROOT=`pwd`/ycsb-0.17.0 make test
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: redis-cover.out