style(sse): Properly export SSE Mutex #6
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 Abacus | |
on: | |
push: | |
paths: | |
- '**.go' | |
jobs: | |
# Label of the container job | |
test: | |
# Containers must run in Linux based operating systems | |
runs-on: ubuntu-latest | |
# Docker Hub image that `container-job` executes in | |
# Service containers to run with `container-job` | |
services: | |
# Label used to access the service container | |
redis: | |
# Docker Hub image | |
image: redis | |
# Set health checks to wait until redis has started | |
options: >- | |
--health-cmd "redis-cli ping" | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
steps: | |
# Downloads a copy of the code in your repository before running CI tests | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: '^1.23.4' | |
- name: Install dependencies | |
run: go install -buildvcs=false | |
- name: Setup K6 | |
uses: grafana/setup-k6-action@v1 | |
- name: Set redis env vars | |
run: | | |
export REDIS_HOST=redis | |
export REDIS_PORT=6379 | |
export REDIS_USERNAME= | |
export REDIS_PASSWORD= | |
export REDIS_DB=0 | |
- name: Run Unit tests | |
run: go test ./... | |
- name: Start abacus | |
run: go run . && sleep 5 | |
- name: Run k6 tests | |
run: k6 run --vus 10 --duration 30s ./tests/performance.js | |