storage: dedupe decode_binary
and parse_key_range
test helpers
#713
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
name: CI | |
on: [push, pull_request, workflow_dispatch] | |
permissions: | |
contents: read | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/[email protected] | |
id: toolchain | |
with: | |
components: clippy, rustfmt | |
- uses: actions/cache@v3 | |
with: | |
path: target | |
key: ${{runner.os}}-target-${{steps.toolchain.outputs.cachekey}}-${{hashFiles('Cargo.lock')}} | |
- run: cargo build --tests | |
- run: cargo test | |
- run: cargo clippy --tests --no-deps -- -D warnings | |
- run: cargo fmt --check |