File tree 2 files changed +12
-2
lines changed
2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 21
21
- name : Build
22
22
run : go build -v ./...
23
23
24
- - name : Test
25
- run : go test -v ./...
24
+ - name : Run Unit tests
25
+ run : |
26
+ go test -race -covermode atomic -coverprofile=covprofile ./...
27
+
28
+ - name : Install goveralls
29
+ run : go install github.com/mattn/goveralls@latest
30
+
31
+ - name : Send coverage
32
+ env :
33
+ COVERALLS_TOKEN : ${{ secrets.GITHUB_TOKEN }}
34
+ run : goveralls -coverprofile=covprofile -service=github
Original file line number Diff line number Diff line change 2
2
3
3
![ test workflow] ( https://github.com/yudppp/throttle/actions/workflows/test.yml/badge.svg )
4
4
[ ![ Go Report Card] ( https://goreportcard.com/badge/github.com/yudppp/throttle )] ( https://goreportcard.com/report/github.com/yudppp/throttle )
5
+ [ ![ Coverage Status] ( https://coveralls.io/repos/github/yudppp/throttle/badge.svg?branch=master )] ( https://coveralls.io/github/yudppp/throttle?branch=master )
5
6
6
7
Throttle is an object that will perform exactly one action per duration.
7
8
Do call the function f if a specified duration has passed since the last function f was called for this instance of Throttle.
You can’t perform that action at this time.
0 commit comments