Skip to content

Gateway should deny sql queries #3

Gateway should deny sql queries

Gateway should deny sql queries #3

Workflow file for this run

name: ci
on:
pull_request:
push:
branches:
- 'main'
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: full
RUSTFLAGS: '-C link-arg=-fuse-ld=lld -D warnings'
jobs:
check_and_test:
name: 'check and test'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4
- name: Setup Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: rustfmt, clippy
profile: minimal
override: true
- name: Cache Cargo build files
uses: Leafwing-Studios/cargo-cache@c7e8aa40ae2c975774d3bd766beb92927cfd7771 # v1
- name: Prepare build env
run: sudo apt-get install -y lld librdkafka-dev libsasl2-dev
- run: cargo check
- run: cargo clippy -- -D warnings
- name: Unit tests
run: cargo test --lib
- name: Integration tests
run: cargo test --test '*'
check_formatting:
name: 'check formatting'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4
- name: Setup Rust toolchain
uses: dtolnay/rust-toolchain@nightly
with:
toolchain: nightly
components: rustfmt
- run: cargo +nightly fmt --all -- --check