Set trace name for mux (gorilla/mux) that contain the method + reguest #16
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: 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 |