Merge RocksDB breaking changes #5222
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 | |
on: | |
pull_request: | |
branches: | |
- "*" | |
paths-ignore: | |
- ".github/workflows/deploy.yml" | |
- ".github/workflows/docs-release.yml" | |
- ".github/workflows/outdated.yml" | |
- ".github/workflows/comment-tag-report.yml" | |
- ".github/workflows/pr-agent.yml" | |
- ".github/workflows/build-binary.yml" | |
- ".github/CODEOWNERS" | |
- "config/**" | |
- "README.md" | |
- "LICENSE" | |
- "CONTRIBUTING.md" | |
- "utils/slack-notifiers/**" | |
workflow_dispatch: | |
push: # Rebuild cache policy | |
branches: | |
- "main" | |
paths: | |
- "Cargo.lock" | |
- "Cargo.toml" | |
- "rust-toolchain.toml" | |
jobs: | |
run_lint: | |
name: Lint and Style checks | |
runs-on: ubuntu-latest | |
timeout-minutes: 25 | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref || github.run_id }} | |
cancel-in-progress: true | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Rust Nightly | |
run: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain nightly-2024-07-19 | |
- name: Rust Cache | |
uses: Swatinem/rust-cache@v2 | |
id: cache-cargo | |
with: | |
prefix-key: ${{ runner.os }}-v3-cargo | |
shared-key: nightly-debug | |
key: ${{ hashFiles('Cargo.lock', 'Cargo.toml') }} | |
cache-provider: "github" | |
cache-directories: "~/.cargo/bin/" | |
- name: Install protoc | |
run: sudo apt-get install -y protobuf-compiler | |
- name: Install libsasl2-dev libssl-dev | |
run: sudo apt-get update && sudo apt install -y build-essential pkg-config libssl-dev libsasl2-dev | |
- name: Set up Just | |
uses: extractions/setup-just@v2 | |
- name: Just lint-check | |
run: just lint-check -2024-07-19 | |
e2e_lint: | |
name: E2E Lint | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
concurrency: | |
group: ${{ github.workflow }}-e2e-${{ github.ref || github.run_id }} | |
cancel-in-progress: true | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: .tool-versions | |
- name: Set up Just | |
uses: extractions/setup-just@v2 | |
- name: Set up shfmt | |
uses: mfinelli/[email protected] | |
with: | |
version: v3.9.0 | |
- name: Set up shellcheck | |
run: sudo apt-get update && sudo apt-get install -y shellcheck | |
- name: Just e2e-lint | |
run: | | |
npm --prefix ./e2e --silent install | |
just e2e-lint --check | |
- name: Just shell-lint | |
run: just shell-lint --diff |