mirror of
https://github.com/gofiber/storage.git
synced 2025-12-19 00:38:24 +08:00
45 lines
996 B
YAML
45 lines
996 B
YAML
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- main
|
|
paths:
|
|
- 'rueidis/**'
|
|
pull_request:
|
|
paths:
|
|
- 'rueidis/**'
|
|
workflow_dispatch:
|
|
name: "Tests Rueidis"
|
|
jobs:
|
|
Tests:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
go-version:
|
|
- 1.24.x
|
|
- 1.25.x
|
|
redis:
|
|
- '7'
|
|
- '8'
|
|
steps:
|
|
- name: Fetch Repository
|
|
uses: actions/checkout@v6
|
|
- name: Setup Redis Cluster
|
|
uses: vishnudxb/redis-cluster@1.0.9
|
|
with:
|
|
master1-port: 7000
|
|
master2-port: 7001
|
|
master3-port: 7002
|
|
slave1-port: 7003
|
|
slave2-port: 7004
|
|
slave3-port: 7005
|
|
sleep-duration: 10
|
|
- name: Install Go
|
|
uses: actions/setup-go@v6
|
|
with:
|
|
go-version: '${{ matrix.go-version }}'
|
|
- name: Run Test
|
|
env:
|
|
TEST_REDIS_IMAGE: "docker.io/redis:${{ matrix.redis }}"
|
|
run: cd ./rueidis && go test ./... -v -race
|