mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
Fixed code coverage GithHub Action
Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
This commit is contained in:
4
.github/workflows/cov.yaml
vendored
4
.github/workflows/cov.yaml
vendored
@@ -28,6 +28,7 @@ jobs:
|
|||||||
shell: bash --noprofile --norc -x -eo pipefail {0}
|
shell: bash --noprofile --norc -x -eo pipefail {0}
|
||||||
run: |
|
run: |
|
||||||
set -e
|
set -e
|
||||||
|
cd src/github.com/nats-io/nats-server
|
||||||
./scripts/cov.sh upload
|
./scripts/cov.sh upload
|
||||||
set +e
|
set +e
|
||||||
|
|
||||||
@@ -35,9 +36,10 @@ jobs:
|
|||||||
uses: jandelgado/gcov2lcov-action@v1.0.9
|
uses: jandelgado/gcov2lcov-action@v1.0.9
|
||||||
with:
|
with:
|
||||||
infile: acc.out
|
infile: acc.out
|
||||||
|
working-directory: src/github.com/nats-io/nats-server
|
||||||
|
|
||||||
- name: Coveralls
|
- name: Coveralls
|
||||||
uses: coverallsapp/github-action@v2
|
uses: coverallsapp/github-action@v2
|
||||||
with:
|
with:
|
||||||
github-token: ${{ secrets.github_token }}
|
github-token: ${{ secrets.github_token }}
|
||||||
path-to-lcov: coverage.lcov
|
file: src/github.com/nats-io/nats-server/coverage.lcov
|
||||||
|
|||||||
@@ -33,8 +33,12 @@ mkdir cov
|
|||||||
#
|
#
|
||||||
go test -v -covermode=atomic -coverprofile=./cov/conf.out ./conf -timeout=1h -tags=skip_no_race_tests
|
go test -v -covermode=atomic -coverprofile=./cov/conf.out ./conf -timeout=1h -tags=skip_no_race_tests
|
||||||
check_file "conf" "conf.out"
|
check_file "conf" "conf.out"
|
||||||
|
go test -v -covermode=atomic -coverprofile=./cov/internal.out ./internal/ldap -timeout=1h -tags=skip_no_race_tests
|
||||||
|
check_file "internal" "internal.out"
|
||||||
go test -v -covermode=atomic -coverprofile=./cov/log.out ./logger -timeout=1h -tags=skip_no_race_tests
|
go test -v -covermode=atomic -coverprofile=./cov/log.out ./logger -timeout=1h -tags=skip_no_race_tests
|
||||||
check_file "logger" "log.out"
|
check_file "logger" "log.out"
|
||||||
|
go test -v -covermode=atomic -coverprofile=./cov/server_avl.out ./server/avl -timeout=1h -tags=skip_no_race_tests
|
||||||
|
check_file "server_avl" "server_avl.out"
|
||||||
go test -v -covermode=atomic -coverprofile=./cov/server.out ./server -timeout=1h -tags=skip_no_race_tests
|
go test -v -covermode=atomic -coverprofile=./cov/server.out ./server -timeout=1h -tags=skip_no_race_tests
|
||||||
check_file "server" "server.out"
|
check_file "server" "server.out"
|
||||||
go test -v -covermode=atomic -coverprofile=./cov/test.out -coverpkg=./server ./test -timeout=1h -tags=skip_no_race_tests
|
go test -v -covermode=atomic -coverprofile=./cov/test.out -coverpkg=./server ./test -timeout=1h -tags=skip_no_race_tests
|
||||||
|
|||||||
Reference in New Issue
Block a user