summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build.yml8
1 files changed, 3 insertions, 5 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 6225559b..cdeb8247 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -62,10 +62,12 @@ jobs:
- name: Install Go dependencies
run: go mod download
+ - name: Run memcached
+ uses: niden/actions-memcached@v7
+
- name: Run golang tests on Windows without codecov
if: ${{ matrix.os == 'windows-latest' }}
run: |
- docker-compose -f ./tests/docker-compose.yaml up -d
go test -v -race -cover -tags=debug ./utils
go test -v -race -cover -tags=debug ./pkg/pipe
go test -v -race -cover -tags=debug ./pkg/pool
@@ -91,12 +93,10 @@ jobs:
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
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
- docker-compose -f ./tests/docker-compose.yaml up -d
mkdir ./coverage-ci
go test -v -race -cover -tags=debug -coverprofile=./coverage-ci/utils.txt -covermode=atomic ./utils
go test -v -race -cover -tags=debug -coverprofile=./coverage-ci/pipe.txt -covermode=atomic ./pkg/pipe
@@ -123,12 +123,10 @@ jobs:
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
- name: Run golang tests on MacOS without docker
if: ${{ matrix.os == 'macos-latest' }}
- uses: niden/actions-memcached@v7
run: |
go test -v -race -cover -tags=debug ./utils
go test -v -race -cover -tags=debug ./pkg/pipe