PG,BQ,SF CDC: PeerDB Columns #2658
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: Build and Test | |
on: | |
push: | |
branches: [main, release/*] | |
pull_request: | |
branches: | |
- "main" | |
- "release/*" | |
jobs: | |
build: | |
strategy: | |
matrix: | |
runner: [ubicloud-standard-8-ubuntu-2204-arm] | |
runs-on: ${{ matrix.runner }} | |
timeout-minutes: 30 | |
services: | |
catalog_peer: | |
image: debezium/postgres:14-alpine | |
ports: | |
- 7132:5432 | |
env: | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: postgres | |
POSTGRES_DB: postgres | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- uses: dtolnay/rust-toolchain@stable | |
- name: install system dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y protobuf-compiler libssl-dev pkg-config build-essential | |
- name: setup gcp service account | |
id: gcp-service-account | |
uses: jsdaniell/[email protected] | |
with: | |
name: "bq_service_account.json" | |
json: ${{ secrets.GCP_GH_CI_PKEY }} | |
dir: "nexus/server/tests/assets/" | |
- name: setup snowflake credentials | |
id: sf-credentials | |
uses: jsdaniell/[email protected] | |
with: | |
name: "snowflake_creds.json" | |
json: ${{ secrets.SNOWFLAKE_GH_CI_PKEY }} | |
dir: "nexus/server/tests/assets/" | |
- name: cargo check | |
run: cargo check | |
working-directory: ./nexus | |
- name: cargo test | |
run: cargo test -- --test-threads=1 | |
working-directory: ./nexus | |
env: | |
RUST_BACKTRACE: 1 | |
PEERDB_CATALOG_HOST: localhost | |
PEERDB_CATALOG_PORT: 7132 | |
PEERDB_CATALOG_DATABASE: postgres | |
PEERDB_CATALOG_USER: postgres | |
PEERDB_CATALOG_PASSWORD: postgres | |
TEST_BQ_CREDS: tests/assets/bq_service_account.json | |
TEST_SF_CREDS: tests/assets/snowflake_creds.json | |
PEERDB_LOG_DIR: /tmp | |
- name: dump server.log | |
if: failure() | |
run: cat nexus/server/server.log |