summaryrefslogtreecommitdiff
path: root/.github/workflows/ci-build.yml
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2020-11-05 17:58:23 +0300
committerGitHub <[email protected]>2020-11-05 17:58:23 +0300
commit9fbe7726dd55cfedda724b7644e1b6bf7c1a6cb4 (patch)
treef2bf9b97d38103de51e2d140aa76666f9c6341c8 /.github/workflows/ci-build.yml
parentedc45b3e24afdb5e56e74ffbbbd50e0e3b04922b (diff)
parent73da7300fcc9b8b22faa1c91fc1faff22ab944ff (diff)
Merge pull request #388 from spiral/enhancement/testsv2.0.0-alpha15
Tests for the new plugins
Diffstat (limited to '.github/workflows/ci-build.yml')
-rwxr-xr-x.github/workflows/ci-build.yml21
1 files changed, 15 insertions, 6 deletions
diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml
index 94549c37..e3e09d88 100755
--- a/.github/workflows/ci-build.yml
+++ b/.github/workflows/ci-build.yml
@@ -1,6 +1,6 @@
name: CI
-on: [push, pull_request]
+on: [ push, pull_request ]
jobs:
build:
@@ -9,9 +9,9 @@ jobs:
strategy:
fail-fast: false
matrix:
- php: [7.2, 7.3, 7.4]
- go: [1.14, 1.15]
- os: [ubuntu-latest]
+ php: [ 7.4 ]
+ go: [ 1.14, 1.15 ]
+ os: [ ubuntu-latest ]
env:
GO111MODULE: on
steps:
@@ -65,8 +65,12 @@ jobs:
- name: Run golang tests
run: |
- composer update
- go test -v -coverprofile=lib.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
+ go test -v -race ./plugins/logger/tests -tags=debug -coverprofile=logger.txt -covermode=atomic
+ go test -v -race ./plugins/app/tests -tags=debug -coverprofile=app.txt -covermode=atomic
- name: Run code coverage
env:
@@ -76,6 +80,11 @@ jobs:
curl https://codecov.io/bash -o codecov-bash
chmod +x codecov-bash
./codecov-bash -f lib.txt
+ ./codecov-bash -f rpc_config.txt
+ ./codecov-bash -f rpc.txt
+ ./codecov-bash -f plugin_config.txt
+ ./codecov-bash -f logger.txt
+ ./codecov-bash -f app.txt
fi
golangci-check: