File tree 2 files changed +32
-1
lines changed
2 files changed +32
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : Build
2
+
3
+ on :
4
+ push :
5
+ branches : [ main ]
6
+ pull_request :
7
+ branches : [ main ]
8
+
9
+ jobs :
10
+ build :
11
+ runs-on : ubuntu-latest
12
+ steps :
13
+ - uses : actions/checkout@v2
14
+
15
+ - name : Set up Go
16
+ uses : actions/setup-go@v2
17
+ with :
18
+ go-version : 1.11
19
+
20
+ - name : Build
21
+ run : go build -v .
22
+
23
+ - name : Test
24
+ run : go test -v . -race -cover -coverprofile=coverage.txt
25
+
26
+ - name : Upload coverage report
27
+ uses : codecov/codecov-action@v2
28
+ with :
29
+ file : ./coverage.txt
30
+ fail_ci_if_error : true
31
+ verbose : true
Original file line number Diff line number Diff line change 1
1
# lsmtree
2
2
3
- [ ![ Build Status ] ( https://app.travis-ci. com/krasun/lsmtree. svg?branch=main )] ( https://app.travis-ci. com/krasun/lsmtree )
3
+ [ ![ Build] ( https://github. com/krasun/lsmtree/actions/workflows/build.yml/badge. svg?branch=main )] ( https://github. com/krasun/lsmtree/actions/workflows/build.yml )
4
4
[ ![ codecov] ( https://codecov.io/gh/krasun/lsmtree/branch/main/graph/badge.svg?token=8NU6LR4FQD )] ( https://codecov.io/gh/krasun/lsmtree )
5
5
[ ![ Go Report Card] ( https://goreportcard.com/badge/github.com/krasun/lsmtree )] ( https://goreportcard.com/report/github.com/krasun/lsmtree )
6
6
[ ![ GoDoc] ( https://godoc.org/https://godoc.org/github.com/krasun/lsmtree?status.svg )] ( https://godoc.org/github.com/krasun/lsmtree )
You can’t perform that action at this time.
0 commit comments