Repository navigation
Merge pull request #4 from sgamelin/fix/minio-build-from-source #44
This file contains hidden or 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: ci | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| example: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: | |
| - ubuntu-latest | |
| - ubuntu-24.04-arm | |
| storage: | |
| - s3://nisshi/ | |
| - postgres://postgres:postgres@db | |
| kafka: | |
| - apache/kafka:3.9.0 | |
| - apache/kafka:3.8.1 | |
| - apache/kafka:3.7.0 | |
| nisshi: | |
| - ghcr.io/nisshi-io/nisshi:main | |
| runs-on: ${{matrix.os}} | |
| env: | |
| ADVERTISED_LISTENER_URL: tcp://nisshi:9092 | |
| AWS_ACCESS_KEY_ID: minioadmin | |
| AWS_ALLOW_HTTP: true | |
| AWS_DEFAULT_REGION: auto | |
| AWS_ENDPOINT: http://minio:9000 | |
| AWS_SECRET_ACCESS_KEY: minioadmin | |
| CLUSTER_ID: kafka-python-integration | |
| KAFKA_IMAGE: ${{matrix.kafka}} | |
| PROMETHEUS_LISTENER_URL: tcp://localhost:9100 | |
| RUST_BACKTRACE: 1 | |
| RUST_LOG: warn,nisshi_server=debug,nisshi_storage=debug,nisshi_schema_registry=debug | |
| STORAGE_ENGINE: ${{matrix.storage}} | |
| NISSHI_IMAGE: ${{matrix.nisshi}} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - run: docker compose --ansi never --progress plain up --no-color --quiet-pull --detach | |
| - run: docker compose --ansi never exec minio /usr/bin/mc ready local | |
| - run: docker compose --ansi never exec minio /usr/bin/mc alias set local http://localhost:9000 minioadmin minioadmin | |
| - run: docker compose --ansi never exec minio /usr/bin/mc mb local/nisshi | |
| - run: sudo apt-get update | |
| - run: sudo apt-get install -y bats | |
| - run: docker compose exec db /usr/bin/pg_isready --timeout=60 | |
| - run: docker compose ps -a --format '{{.ID}}\t{{.Service}}' | |
| - run: docker compose exec kafka cat /etc/hosts | |
| - run: docker compose exec kafka ping -c 6 nisshi | |
| - run: docker compose exec kafka ping -c 6 minio | |
| - run: bats --trace --verbose-run tests |