Skip to content

fix race condition #739

fix race condition

fix race condition #739

Workflow file for this run

name: checks
on: [
pull_request,
workflow_dispatch,
]
env:
TERM: xterm
REVIVE_FORCE_COLOR: 1
jobs:
test:
name: run-testcases
runs-on: ubuntu-latest
strategy:
matrix:
go_version: ['1.21']
# services:
# redis:
# image: redis:5.0-alpine
# ports:
# - 6379:6379
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go_version }}
- uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: start services
run: docker compose up -d
- name: run testcases
run: make test2
- name: benchmark
run: make bench
- name: linter
run: make lint
- name: vet
run: make vet