-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add feature flags for each protocol in shotover
- Loading branch information
Showing
27 changed files
with
486 additions
and
129 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,11 +40,13 @@ jobs: | |
- name: Install ubuntu packages | ||
run: shotover-proxy/build/install_ubuntu_packages.sh | ||
- name: Install cargo-hack | ||
run: cargo install cargo-hack --version 0.5.8 | ||
uses: taiki-e/install-action@v2 | ||
with: | ||
tool: [email protected] | ||
- name: Ensure that dev tools compiles and has no warnings with no features enabled | ||
run: cargo clippy --locked ${{ matrix.cargo_flags }} --all-targets -- -D warnings | ||
- name: Ensure that shotover-proxy compiles and has no warnings under every possible combination of features | ||
# some things to explicitly point out: | ||
# * clippy also reports rustc warnings and errors | ||
# * clippy --all-targets is not run so we only build the shotover_proxy executable without the tests/benches | ||
run: cargo hack --feature-powerset clippy --locked ${{ matrix.cargo_flags }} --package shotover-proxy -- -D warnings | ||
run: cargo hack --feature-powerset --at-least-one-of redis,cassandra,kafka,opensearch clippy --locked ${{ matrix.cargo_flags }} --package shotover-proxy -- -D warnings |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,14 +40,14 @@ jobs: | |
- name: Install cargo-hack | ||
uses: taiki-e/install-action@v2 | ||
with: | ||
tool: [email protected].4 | ||
tool: [email protected].16 | ||
- name: Ensure `cargo fmt --all` was run | ||
run: cargo fmt --all -- --check | ||
- name: Ensure that all crates compile and have no warnings under every possible combination of features | ||
# some things to explicitly point out: | ||
# * clippy also reports rustc warnings and errors | ||
# * clippy --all-targets causes clippy to run against tests and examples which it doesnt do by default. | ||
run: cargo hack --feature-powerset clippy --all-targets --locked -- -D warnings | ||
run: cargo hack --feature-powerset --at-least-one-of redis,cassandra,kafka,opensearch clippy --all-targets --locked -- -D warnings | ||
- name: Report disk usage | ||
run: | | ||
df -h | ||
|
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
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
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
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
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
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
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
Oops, something went wrong.