Skip to content

Set trace name for mux (gorilla/mux) that contain the method + reguest #16

Set trace name for mux (gorilla/mux) that contain the method + reguest

Set trace name for mux (gorilla/mux) that contain the method + reguest #16

Workflow file for this run

name: Kit framework Unit test
on:
pull_request:
types: [ opened, synchronize ]
paths:
- "kit/**/*.go"
env:
TESTINGDB_URL: postgresql://postgres:secret@localhost:5432/postgres
TESTINGREDIS_URL: ":6379"
TESTINGNATS_URL: "nats://127.0.0.1:4222"
PUBSUB_EMULATOR_HOST: ":8085"
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: 1.20.x
- name: Start up docker compose
run: docker-compose -f kit/docker-compose.yaml up -d --remove-orphans
- name: Run Kit Test
run: go test -v -race -p=6 -cpu=1,4 ./kit/...
- name: Stop containers
if: always()
run: docker-compose -f kit/docker-compose.yaml down