feat: open telemetry traces setup #1952
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: Smoke test Docker image | |
on: | |
pull_request: | |
push: | |
branches: [ main ] | |
jobs: | |
smoke-test-container: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [ '3.10', '3.11', '3.12' ] | |
env: | |
BUILDKIT_PROGRESS: plain | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
# Need fetch-depth 0 to fetch tags, see https://github.com/actions/checkout/issues/701 | |
with: | |
fetch-depth: 0 | |
- name: Resolve Karapace version | |
run: echo KARAPACE_VERSION="$(git describe --tags | cut -d '-' -f -2 | sed 's/-/.dev/g')" >> $GITHUB_ENV | |
- run: echo "RUNNER_UID=$(id -u)" >> $GITHUB_ENV | |
- run: echo "RUNNER_GID=$(id -g)" >> $GITHUB_ENV | |
- name: Run container | |
run: make start-karapace-docker-resources | |
env: | |
PYTHON_VERSION: ${{ matrix.python-version }} | |
KARAPACE_VERSION: ${{ env.KARAPACE_VERSION }} | |
RUNNER_UID: ${{ env.RUNNER_UID }} | |
RUNNER_GID: ${{ env.RUNNER_GID }} | |
- name: Smoke test schema registry | |
run: bin/smoke-test-schema-registry.sh | |
env: | |
KARAPACE_PORT: 8081 | |
- name: Smoke test REST proxy | |
run: bin/smoke-test-rest-proxy.sh | |
env: | |
KARAPACE_PORT: 8082 |