update dependencies workflows #469
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | |
| redis: | |
| - '6' | |
| - '7' | |
| steps: | |
| - name: Fetch Repository | |
| uses: actions/checkout@v6 | |
| - name: Setup Redis Cluster | |
| uses: vishnudxb/[email protected] | |
| 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 |