add coveralls steps to the tests #15
@@ -1,4 +1,4 @@
|
|||||||
name: Tests
|
name: Quality
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
@@ -37,5 +37,16 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
go-version: 1.25
|
go-version: 1.25
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run Unit tests
|
||||||
run: go test -v ./...
|
run: |
|
||||||
|
go test -race -covermode atomic -coverprofile=coverage.out ./...
|
||||||
|
grep -v "_gen.go" coverage.out > coverage.filtered.out
|
||||||
|
mv coverage.filtered.out coverage.out
|
||||||
|
|
||||||
|
- name: Install goveralls
|
||||||
|
run: go install github.com/mattn/goveralls@v0.0.12
|
||||||
|
|
||||||
|
- name: Send coverage
|
||||||
|
env:
|
||||||
|
COVERALLS_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN}}
|
||||||
|
run: goveralls -coverprofile=coverage.out -service=github
|
||||||
@@ -19,10 +19,12 @@ func (d Side) String() string {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// IsBuy returns true if the s == SideBuy
|
||||||
func (d Side) IsBuy() bool {
|
func (d Side) IsBuy() bool {
|
||||||
return d == SideBuy
|
return d == SideBuy
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// IsSell returns true if the s == SideSell
|
||||||
func (d Side) IsSell() bool {
|
func (d Side) IsSell() bool {
|
||||||
return d == SideSell
|
return d == SideSell
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user