diff options
Diffstat (limited to '.github/workflows/ci-build.yml')
-rwxr-xr-x | .github/workflows/ci-build.yml | 21 |
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: |