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
Workflow file for this run
This file contains 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
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 |