Skip to content

Test suite

Test suite #95

Workflow file for this run

name: Test suite
on: [push]
jobs:
test:
name: Test
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/setup-go@v2
with:
go-version: '^1.0.0'
- uses: actions/checkout@v2
- name: Get dependencies
run: go mod download
- name: Run tests (without redis)
run: go test -timeout=3m -race ./...
- name: Install redis
run: sudo apt-get install -y -qq redis-server
- name: Run tests (with redis installed)
run: go test -count=1 -timeout=3m -v -race ./...