[core] - feature: support eu-cluster-0
in Qdrant (#9625)
#3025
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: Lint & Build & Test (core) | |
on: | |
push: | |
paths: | |
- core/** | |
- .github/workflows/build-and-test-core.yml | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install minimal stable | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
- name: checkout | |
uses: actions/checkout@v3 | |
- name: Install Redis | |
uses: zhulik/[email protected] | |
with: | |
redis version: "7.2.5" | |
- name: Install Postgres | |
uses: harmon758/postgresql-action@v1 | |
with: | |
postgresql version: "14.13" # See https://hub.docker.com/_/postgres for available versions | |
postgresql db: oauth | |
postgresql user: test | |
postgresql password: test | |
- name: Install Protoc | |
uses: arduino/setup-protoc@v1 | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Setup Rust Cache | |
uses: Swatinem/rust-cache@v2 | |
with: | |
workspaces: core | |
- name: Lint | |
working-directory: core | |
run: cargo fmt --all -- --check | |
- name: Setup Tables | |
working-directory: core | |
run: cargo run --bin init_db | |
env: | |
OAUTH_DATABASE_URI: "postgres://test:test@localhost:5432/oauth" | |
- name: Test | |
working-directory: core | |
run: cargo test --all | |
env: | |
DISABLE_API_KEY_CHECK: "true" | |
OAUTH_DATABASE_URI: "postgres://test:test@localhost:5432/oauth" | |
REDIS_URI: "redis://localhost:6379" | |
OAUTH_ENCRYPTION_KEY: ${{ secrets.TEST_OAUTH_ENCRYPTION_KEY }} |