Skip to content

add redis cluster client tests #174

add redis cluster client tests

add redis cluster client tests #174

Workflow file for this run

name: Go tests
on: [ push, pull_request ]
jobs:
go-test:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [ '1.17', '1.18', '1.19', '1.20', '1.21', '1.22' ]
services:
etcd:
image: bitnami/etcd
env:
ALLOW_NONE_AUTHENTICATION: yes
ports:
- 2379:2379
redis:
image: bitnami/redis
env:
ALLOW_EMPTY_PASSWORD: yes
ports:
- 6379:6379
redis-cluster:
image: grokzen/redis-cluster:7.0.10
environment:

Check failure on line 28 in .github/workflows/tests.yml

View workflow run for this annotation

GitHub Actions / Go tests

Invalid workflow file

The workflow is not valid. .github/workflows/tests.yml (Line: 28, Col: 9): Unexpected value 'environment'
IP: "0.0.0.0"
ports:
- "7000-7005:7000-7005"
memcached:
image: bitnami/memcached
ports:
- 11211:11211
consul:
image: bitnami/consul
ports:
- 8500:8500
zookeeper:
image: bitnami/zookeeper
env:
ALLOW_ANONYMOUS_LOGIN: yes
ports:
- 2181:2181
postgresql:
image: bitnami/postgresql
env:
ALLOW_EMPTY_PASSWORD: yes
ports:
- 5432:5432
steps:
- uses: actions/checkout@v4
- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Setup DynamoDB Local
uses: rrainn/dynamodb-action@v3.0.0
with:
port: 8000
- name: Run tests
env:
ETCD_ENDPOINTS: 'localhost:2379'
REDIS_ADDR: 'localhost:6379'
REDIS_NODES: 'localhost:7000,localhost:7001,localhost:7002,localhost:7003,localhost:7004,localhost:7005'
CONSUL_ADDR: 'localhost:8500'
ZOOKEEPER_ENDPOINTS: 'localhost:2181'
AWS_ADDR: 'localhost:8000'
MEMCACHED_ADDR: '127.0.0.1:11211'
POSTGRES_URL: postgres://postgres@localhost:5432/?sslmode=disable
run: go test -race -v -coverprofile=coverage.txt -covermode=atomic ./...
- uses: codecov/codecov-action@v4.1.0
with:
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true