Test suite #95
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: 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 ./... |