fix: inconsistent connection pooling #1
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, Format and Check | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
lint-format-and-check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Install Dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y protobuf-compiler libprotobuf-dev | |
- name: Set up Rust | |
uses: moonrepo/setup-rust@v1 | |
with: | |
components: rustfmt, clippy | |
- name: Check formatting with rustfmt | |
run: cargo fmt --all -- --check | |
- name: Run clippy for linting | |
run: cargo clippy --all-targets --all-features -- -D warnings | |
- name: Run cargo check | |
run: cargo check --all-targets --all-features |