Use edgedb/test-utils for starting the server in tests #810
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
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,clippy,rustfmt" | |
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 |