summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-01-07 13:29:07 +0300
committerValery Piashchynski <[email protected]>2021-01-07 13:29:07 +0300
commit21689afbc5f717274cd608358ffca3bdacb38f69 (patch)
tree159ddd2b154a5afbec5dedc75a1a94c5a83ebfae /.github
parentc1465d3bcdf24a78440300aa51e7cfc92ce874a8 (diff)
Fix compatibility issues, add tests to the CI
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build.yml22
1 files changed, 18 insertions, 4 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 4c57125d..9a234ee5 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -8,7 +8,7 @@ on:
# this job on pull_request events for branches that look like fork
# branches. Without this we would end up running this job twice for non
# forked PRs, once for the push and then once for opening the PR.
- - '**:**'
+ - "**:**"
jobs:
golang:
@@ -18,9 +18,9 @@ jobs:
strategy:
fail-fast: false
matrix:
- php: [ '7.4', '8.0' ]
- go: [ '1.14', '1.15' ]
- os: [ ubuntu-20.04, windows-latest, macos-10.15 ]
+ php: ["7.4", "8.0"]
+ go: ["1.14", "1.15"]
+ os: [ubuntu-20.04, windows-latest, macos-10.15]
steps:
- name: Set up Go ${{ matrix.go }}
uses: actions/setup-go@v2 # action page: <https://github.com/actions/setup-go>
@@ -85,6 +85,13 @@ jobs:
go test -v -race -cover -tags=debug ./tests/plugins/resetter
go test -v -race -cover -tags=debug ./tests/plugins/rpc
go test -v -race -cover -tags=debug ./tests/plugins/static
+ go test -v -race -cover -tags=debug ./plugins/kv/boltdb
+ go test -v -race -cover -tags=debug ./plugins/kv/memory
+ go test -v -race -cover -tags=debug ./plugins/kv/memcached
+ go test -v -race -cover -tags=debug ./tests/plugins/kv/boltdb
+ go test -v -race -cover -tags=debug ./tests/plugins/kv/memory
+ go test -v -race -cover -tags=debug ./tests/plugins/kv/memcached
+ docker-compose -f ./tests/docker-compose.yaml down
- name: Run golang tests on Linux and MacOS
if: ${{ matrix.os != 'windows-latest' }}
@@ -110,6 +117,13 @@ jobs:
go test -v -race -cover -tags=debug -coverprofile=./coverage-ci/resetter.txt -covermode=atomic ./tests/plugins/resetter
go test -v -race -cover -tags=debug -coverprofile=./coverage-ci/rpc.txt -covermode=atomic ./tests/plugins/rpc
go test -v -race -cover -tags=debug -coverprofile=./coverage-ci/static.txt -covermode=atomic ./tests/plugins/static
+ go test -v -race -cover -tags=debug -coverprofile=./coverage-ci/boltdb_unit.txt -covermode=atomic ./plugins/kv/boltdb
+ go test -v -race -cover -tags=debug -coverprofile=./coverage-ci/kv_unit.txt -covermode=atomic ./plugins/kv/memory
+ go test -v -race -cover -tags=debug -coverprofile=./coverage-ci/memcached_unit.txt -covermode=atomic ./plugins/kv/memcached
+ go test -v -race -cover -tags=debug -coverprofile=./coverage-ci/boltdb.txt -covermode=atomic ./tests/plugins/kv/boltdb
+ go test -v -race -cover -tags=debug -coverprofile=./coverage-ci/memory.txt -covermode=atomic ./tests/plugins/kv/memory
+ go test -v -race -cover -tags=debug -coverprofile=./coverage-ci/memcached.txt -covermode=atomic ./tests/plugins/kv/memcached
+ docker-compose -f ./tests/docker-compose.yaml down
cat ./coverage-ci/*.txt > ./coverage-ci/summary.txt
- uses: codecov/codecov-action@v1 # Docs: <https://github.com/codecov/codecov-action>