Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Add path to go.mod/go.sum files #52

Add path to go.mod/go.sum files

Add path to go.mod/go.sum files #52

Workflow file for this run

name: Build
on: [push, pull_request]
env:
GO111MODULE: on
jobs:
test:
strategy:
matrix:
go-version: [1.20.x, 1.21.x, 1.22.x]
redis-version: [6, 7]
runs-on: ubuntu-latest
steps:
- name: Start Redis
uses: supercharge/[email protected]
with:
redis-version: ${{ matrix.redis-version }}
- name: Wait for Redis to Start
run: sleep 15
- name: Fetch Repository
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
go-version-file: ./v2/go.mod
cache-dependency-path: ./v2/go.sum
- name: Test
working-directory: ./v2
run: go run gotest.tools/gotestsum@latest -f testname -- ./... -race -count=1 -shuffle=on