Skip to content

refactor(dataplane,controlplane): improve logger (#2609) #305

refactor(dataplane,controlplane): improve logger (#2609)

refactor(dataplane,controlplane): improve logger (#2609) #305

name: Build and Run RabbitMQ PubSub tests
on:
push:
branches:
- main
pull_request:
permissions:
contents: read
jobs:
pubsub-tests:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [1.25.7]
postgres-version: ["15"]
redis-version: ["6.2.6"]
services:
postgres:
image: postgres:${{ matrix.postgres-version }}
ports:
- 5432:5432
env:
POSTGRES_USER: postgres
POSTGRES_DB: convoy
POSTGRES_PASSWORD: postgres
POSTGRES_MAX_CONNECTIONS: 2000
options: --health-cmd pg_isready --health-interval 10ms --health-timeout 500ms --health-retries 15
redis:
image: redis:${{ matrix.redis-version }}
ports:
- 6379:6379
options: --health-cmd "redis-cli ping" --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- name: Set up Go
uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6
with:
go-version: ${{ matrix.go-version }}
- name: Cache go modules
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('go.sum') }}
restore-keys: ${{ runner.os }}-go-${{ hashFiles('go.sum') }}
- name: Check out code
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
- name: Get and verify dependencies
run: go mod download && go mod verify
- name: Migrate Postgres
run: go run ./cmd migrate up
env:
CONVOY_DB_SCHEME: postgres
CONVOY_DB_HOST: localhost
CONVOY_DB_USERNAME: postgres
CONVOY_DB_PASSWORD: postgres
CONVOY_DB_DATABASE: convoy
CONVOY_DB_OPTIONS: sslmode=disable&connect_timeout=30
CONVOY_DB_PORT: 5432
CONVOY_REDIS_SCHEME: redis
CONVOY_REDIS_HOST: localhost
CONVOY_REDIS_PORT: 6379
- name: Run AMQP PubSub E2E tests (testcontainers)
run: go test -race -v ./e2e/amqp -timeout 30m
env:
TEST_LICENSE_KEY: ${{ secrets.CONVOY_TEST_LICENSE_KEY }}
CONVOY_LICENSE_KEY: ${{ secrets.CONVOY_TEST_LICENSE_KEY }}
CONVOY_LOCAL_ENCRYPTION_KEY: ${{ secrets.CONVOY_TEST_ENCRYPTION_KEY }}
CONVOY_DISPATCHER_SKIP_PING_VALIDATION: true