diff options
author | Valery Piashchynski <[email protected]> | 2020-11-04 16:52:03 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2020-11-04 16:52:03 +0300 |
commit | 3a0a0190ed130e72ebc150bbb3e3c1582f22dd16 (patch) | |
tree | bd9a80b13b2ce977efbf487918fdcad180b218b2 | |
parent | d4c06947f4f250908cd75b4a80afe1be77548229 (diff) |
Add tests to the Makefile, update CI
-rwxr-xr-x | .github/workflows/ci-build.yml | 8 | ||||
-rw-r--r-- | Makefile | 5 | ||||
-rw-r--r-- | rpc.txt | 18 |
3 files changed, 9 insertions, 22 deletions
diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index 66f88a36..28921a81 100755 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -65,9 +65,10 @@ jobs: - name: Run golang tests run: | - go test -v . -tags=debug -coverprofile=lib.txt -covermode=atomic - go test -v ./plugins/rpc -tags=debug -coverprofile=rpc_config.txt -covermode=atomic - go test -v ./plugins/rpc/tests -tags=debug -coverprofile=rpc.txt -covermode=atomic + go test -v -race . -tags=debug -coverprofile=lib.txt -covermode=atomic + go test -v -race ./plugins/rpc -tags=debug -coverprofile=rpc_config.txt -covermode=atomic + go test -v -race ./plugins/rpc/tests -tags=debug -coverprofile=rpc.txt -covermode=atomic + go test -v -race ./plugins/config/tests -tags=debug -coverprofile=plugin_config.txt -covermode=atomic - name: Run code coverage env: @@ -79,6 +80,7 @@ jobs: ./codecov-bash -f lib.txt ./codecov-bash -f rpc_config.txt ./codecov-bash -f rpc.txt + ./codecov-bash -f plugin_config.txt fi golangci-check: @@ -1,2 +1,5 @@ test: - go test -v -race -tags=debug . + go test -v -race -cover . -tags=debug + go test -v -race -cover ./plugins/rpc -tags=debug + go test -v -race -cover ./plugins/rpc/tests -tags=debug + go test -v -race -cover ./plugins/config/tests -tags=debug
\ No newline at end of file diff --git a/rpc.txt b/rpc.txt deleted file mode 100644 index 335e77ef..00000000 --- a/rpc.txt +++ /dev/null @@ -1,18 +0,0 @@ -mode: atomic -github.com/spiral/roadrunner/v2/plugins/rpc/tests/plugin1.go:13.54,16.2 2 1 -github.com/spiral/roadrunner/v2/plugins/rpc/tests/plugin1.go:18.39,21.2 2 1 -github.com/spiral/roadrunner/v2/plugins/rpc/tests/plugin1.go:23.33,25.2 1 1 -github.com/spiral/roadrunner/v2/plugins/rpc/tests/plugin1.go:27.34,29.2 1 2 -github.com/spiral/roadrunner/v2/plugins/rpc/tests/plugin1.go:31.54,33.2 1 1 -github.com/spiral/roadrunner/v2/plugins/rpc/tests/plugin1.go:39.57,42.2 2 1 -github.com/spiral/roadrunner/v2/plugins/rpc/tests/plugin2.go:18.33,20.2 1 1 -github.com/spiral/roadrunner/v2/plugins/rpc/tests/plugin2.go:22.39,25.12 2 1 -github.com/spiral/roadrunner/v2/plugins/rpc/tests/plugin2.go:49.2,49.14 1 1 -github.com/spiral/roadrunner/v2/plugins/rpc/tests/plugin2.go:25.12,29.17 3 1 -github.com/spiral/roadrunner/v2/plugins/rpc/tests/plugin2.go:33.3,36.17 4 1 -github.com/spiral/roadrunner/v2/plugins/rpc/tests/plugin2.go:40.3,40.39 1 1 -github.com/spiral/roadrunner/v2/plugins/rpc/tests/plugin2.go:45.3,46.9 2 1 -github.com/spiral/roadrunner/v2/plugins/rpc/tests/plugin2.go:29.17,32.4 2 0 -github.com/spiral/roadrunner/v2/plugins/rpc/tests/plugin2.go:36.17,39.4 2 0 -github.com/spiral/roadrunner/v2/plugins/rpc/tests/plugin2.go:40.39,43.4 2 0 -github.com/spiral/roadrunner/v2/plugins/rpc/tests/plugin2.go:52.33,54.2 1 1 |