Skip to content

Apply lint suggestion and format the project #806

Apply lint suggestion and format the project

Apply lint suggestion and format the project #806

Workflow file for this run

on: [pull_request]
name: CI
jobs:
build_and_test:
name: Tests
runs-on: ubuntu-latest
strategy:
matrix:
rust_version: ["1.72", stable, beta]
timeout-minutes: 15
steps:
- uses: actions/checkout@master
- uses: edgedb/setup-edgedb@v1
- uses: dtolnay/rust-toolchain@be73d7920c329f220ce78e0234b8f96b7ae60248
with:
components: "cargo,rustc,rust-std"
toolchain: ${{ matrix.rust_version }}
- name: Test all features
run: |
cargo test --workspace --all-features
- name: Check no default features
run: |
cargo check --no-default-features --workspace
- name: Check with `fs` feature (edgedb-tokio)
run: |
cargo check --features=fs --package edgedb-tokio
- name: Check with env feature, edgedb-tokio
run: |
cargo check --features=env --package edgedb-tokio
- name: Test edgedb-protocol without default features
run: |
cargo test --package=edgedb-protocol --no-default-features
- name: Test edgedb-protocol with "all-types" feature
run: |
cargo test --package=edgedb-protocol --features=all-types
- run: |
cargo clippy --all-features --workspace --all-targets -- \
-A clippy::collapsible_if \
-A clippy::derive_partial_eq_without_eq \
-A clippy::zero_ptr \
-A clippy::manual_strip \
-A clippy::new_ret_no_self \
-A clippy::type_complexity \
-A clippy::vec_init_then_push \
-A clippy::while_let_on_iterator \
-A clippy::useless_format \
-A clippy::too_many_arguments \
-A clippy::clone_on_copy
- run: |
cargo fmt --check