mirror of
https://github.com/gofiber/storage.git
synced 2025-12-19 00:38:24 +08:00
46 lines
1.0 KiB
YAML
46 lines
1.0 KiB
YAML
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- main
|
|
paths:
|
|
- 'valkey/**'
|
|
pull_request:
|
|
paths:
|
|
- 'valkey/**'
|
|
- '.github/workflows/test-valkey.yml'
|
|
workflow_dispatch:
|
|
name: "Tests Valkey"
|
|
jobs:
|
|
Tests:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
go-version:
|
|
- 1.24.x
|
|
- 1.25.x
|
|
valkey:
|
|
- '7'
|
|
- '8'
|
|
steps:
|
|
- name: Fetch Repository
|
|
uses: actions/checkout@v6
|
|
- name: Setup Valkey 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_VALKEY_IMAGE: "valkey/valkey:${{ matrix.valkey }}"
|
|
run: cd ./valkey && go test ./... -v -race
|