(feat) add redis mutually exclusive distributed locks #6
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 & Test | ||
on: | ||
pull_request: | ||
paths-ignore: | ||
- "docs/**" | ||
- "*.md" | ||
- ".gitignore" | ||
- "CODEOWNERS" | ||
- "LICENSE" | ||
- "Makefile" | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: ">=1.21.0" | ||
- name: Install redis server package | ||
run: | ||
- curl -fsSL https://packages.redis.io/gpg | sudo gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg | ||
- sudo chmod 644 /usr/share/keyrings/redis-archive-keyring.gpg | ||
- echo "deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/redis.list | ||
- sudo apt-get update && sudo apt-get install redis-stack-server | ||
- name: Install dev binaries | ||
run: make install | ||
- name: Build | ||
run: make build | ||
- name: Test | ||
run: ginkgo -label-filter="!e2e" -race ./... |