mirror of
https://github.com/redis/go-redis.git
synced 2025-04-16 09:23:06 +03:00
* introduce github workflow for ci similar to the one in redis-py use prerelease for 8.0-M4 * Enable osscluster tests in CI * Add redis major version env Enable filtering test per redis major version Fix test for FT.SEARCH WITHSCORE, the default scorer has changed. fix Makefile syntax remove filter from github action fix makefile use the container name in Makefile * remove 1.20 from doctests * self review, cleanup, add comments * add comments, reorder prints, add default value for REDIS_MAJOR_VERSION
42 lines
863 B
YAML
42 lines
863 B
YAML
name: Documentation Tests
|
|
|
|
on:
|
|
push:
|
|
branches: [master, examples]
|
|
pull_request:
|
|
branches: [master, examples]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
doctests:
|
|
name: doctests
|
|
runs-on: ubuntu-latest
|
|
|
|
services:
|
|
redis-stack:
|
|
image: redis/redis-stack-server:latest
|
|
options: >-
|
|
--health-cmd "redis-cli ping" --health-interval 10s --health-timeout 5s --health-retries 5
|
|
ports:
|
|
- 6379:6379
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
go-version: [ "1.21", "1.22", "1.23" ]
|
|
|
|
steps:
|
|
- name: Set up ${{ matrix.go-version }}
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version: ${{ matrix.go-version }}
|
|
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Test doc examples
|
|
working-directory: ./doctests
|
|
run: go test
|