summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorShupilkin Stanislav Yurevich <[email protected]>2019-10-23 21:33:47 +0300
committerShupilkin Stanislav Yurevich <[email protected]>2019-10-23 21:33:47 +0300
commit44fd576f76deef5ab854385b120f3ba6a3aa6078 (patch)
tree6f04e6c363af922952dd4d6e0bc8cf4968778523 /.github
parent15e61972ffc28cba9109a923647bebeb2a3831c8 (diff)
Add step for running golang tests
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/blank.yml13
1 files changed, 13 insertions, 0 deletions
diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml
index 55d28777..dd30cf30 100644
--- a/.github/workflows/blank.yml
+++ b/.github/workflows/blank.yml
@@ -41,3 +41,16 @@ jobs:
composer install --no-interaction --prefer-source
find src/ -name "*.php" -print0 | xargs -0 -n1 -P8 php -l
chmod +x bin/rr && bin/rr get-binary
+ - name: Run golanf tests
+ run:
+ - go test -race -v -coverprofile=lib.txt -covermode=atomic
+ - go test ./util -race -v -coverprofile=util.txt -covermode=atomic
+ - go test ./service -race -v -coverprofile=service.txt -covermode=atomic
+ - go test ./service/env -race -v -coverprofile=env.txt -covermode=atomic
+ - go test ./service/rpc -race -v -coverprofile=rpc.txt -covermode=atomic
+ - go test ./service/http -race -v -coverprofile=http.txt -covermode=atomic
+ - go test ./service/static -race -v -coverprofile=static.txt -covermode=atomic
+ - go test ./service/limit -race -v -coverprofile=limit.txt -covermode=atomic
+ - go test ./service/headers -race -v -coverprofile=headers.txt -covermode=atomic
+ - go test ./service/metrics -race -v -coverprofile=metrics.txt -covermode=atomic
+ - go test ./service/health -race -v -coverprofile=health.txt -covermode=atomic