refactor(cached_object_store): continue seperate the files inside a m… #1248
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: PR Checks | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
types: [opened, synchronize, reopened, ready_for_review] | |
# Make sure CI fails on all warnings, including Clippy lints | |
env: | |
RUSTFLAGS: "-Dwarnings" | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: cargo install cargo-hack | |
run: cargo +stable install cargo-hack --locked | |
- name: cargo check | |
run: cargo hack check --each-feature --no-dev-deps | |
clippy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: cargo install cargo-hack | |
run: cargo +stable install cargo-hack --locked | |
- name: cargo clippy | |
run: cargo hack clippy --each-feature --no-dev-deps && cargo hack clippy --lib -p slatedb --tests | |
style: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: cargo fmt | |
run: cargo fmt -- --check | |
flatbuffers: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
# Install specific version of flatc (24.3.25) | |
- name: Install flatc | |
run: | | |
wget https://github.com/google/flatbuffers/releases/download/v24.3.25/Linux.flatc.binary.g++-13.zip | |
unzip Linux.flatc.binary.g++-13.zip | |
sudo mv flatc /usr/local/bin/ | |
# Check for differences | |
- name: Generate and validate files | |
run: | | |
flatc -o tmp/generated --rust --gen-all schemas/manifest.fbs | |
if ! diff -r src/generated/*.rs tmp/generated; then | |
echo "Generated files do not match!" | |
exit 1 | |
fi | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: taiki-e/install-action@v2 | |
with: | |
tool: [email protected] | |
- name: Run Tests | |
run: cargo nextest run --all-features --profile ci | |