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

chore: Simplify GitHub Actions Workflow #55

chore: Simplify GitHub Actions Workflow

chore: Simplify GitHub Actions Workflow #55

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.x, 7.x]
runs-on: ubuntu-latest
steps:
- name: Start Redis
uses: shogo82148/actions-setup-redis@v1
with:
redis-version: ${{ matrix.redis-version }}
auto-start: "true"
- name: Wait for Redis to Start
run: sleep 10
- 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