File tree 3 files changed +45
-8
lines changed
3 files changed +45
-8
lines changed Original file line number Diff line number Diff line change 5
5
- master
6
6
pull_request :
7
7
jobs :
8
+ cleanup-runs :
9
+ runs-on : ubuntu-latest
10
+ steps :
11
+ - uses : rokroskar/workflow-run-cleanup-action@master
12
+ env :
13
+ GITHUB_TOKEN : " ${{ secrets.GITHUB_TOKEN }}"
14
+ if : " !startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/master'"
15
+
8
16
Test :
9
17
runs-on : ubuntu-latest
10
18
container : tendermintdev/docker-tm-db-testing
11
19
steps :
12
20
- uses : actions/checkout@v2
13
- - name : test all dbs
21
+ - name : test & coverage report creation
14
22
run : |
15
- make test-all
16
- shell : bash
23
+ go test ./... -mod=readonly -timeout 8m -race -coverprofile=coverage.txt -covermode=atomic -tags cleveldb,boltdb,rocksdb -v
24
+ - uses : codecov/codecov-action@v1
25
+ with :
26
+ file : ./coverage.txt
27
+ fail_ci_if_error : true
Original file line number Diff line number Diff line change
1
+ #
2
+ # This codecov.yml is the default configuration for
3
+ # all repositories on Codecov. You may adjust the settings
4
+ # below in your own codecov.yml in your repository.
5
+ #
6
+ codecov :
7
+ require_ci_to_pass : yes
8
+
9
+ coverage :
10
+ precision : 2
11
+ round : down
12
+ range : 70...100
13
+
14
+ status :
15
+ # Learn more at https://docs.codecov.io/docs/commit-status
16
+ project :
17
+ default :
18
+ threshold : 1% # allow this much decrease on project
19
+
20
+ comment :
21
+ layout : " reach, diff, files, tree"
22
+ behavior : default # update if exists else create new
23
+ require_changes : true
24
+
25
+ ignore :
26
+ - " remotedb/proto"
Original file line number Diff line number Diff line change @@ -10,23 +10,23 @@ all: lint test
10
10
# # By default this will only test memdb & goleveldb
11
11
test :
12
12
@echo " --> Running go test"
13
- @go test -p 1 $(PACKAGES ) -v
13
+ @go test $(PACKAGES ) -v
14
14
15
15
test-cleveldb :
16
16
@echo " --> Running go test"
17
- @go test -p 1 $(PACKAGES ) -tags cleveldb -v
17
+ @go test $(PACKAGES ) -tags cleveldb -v
18
18
19
19
test-rocksdb :
20
20
@echo " --> Running go test"
21
- @go test -p 1 $(PACKAGES ) -tags rocksdb -v
21
+ @go test $(PACKAGES ) -tags rocksdb -v
22
22
23
23
test-boltdb :
24
24
@echo " --> Running go test"
25
- @go test -p 1 $(PACKAGES ) -tags boltdb -v
25
+ @go test $(PACKAGES ) -tags boltdb -v
26
26
27
27
test-all :
28
28
@echo " --> Running go test"
29
- @go test -p 1 $(PACKAGES ) -tags cleveldb,boltdb,rocksdb -v
29
+ @go test $(PACKAGES ) -tags cleveldb,boltdb,rocksdb -v
30
30
31
31
lint :
32
32
@echo " --> Running linter"
You can’t perform that action at this time.
0 commit comments