Skip to content

Commit

Permalink
Tree Validation (#112)
Browse files Browse the repository at this point in the history
* tree validation

* update deps

* remove version from ci

* update ci

* ci fix

* fix for test server port

* Revert "fix for test server port"

This reverts commit bff3d93.

* remove cargo sort

* ci backtraces

* second try

* changed log for cache restore error

* mmap cache panic handling and tests

* remove chance of panic
  • Loading branch information
0xForerunner authored Jul 17, 2024
1 parent b318244 commit 39d8887
Show file tree
Hide file tree
Showing 15 changed files with 609 additions and 543 deletions.
27 changes: 10 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,16 @@ on:
branches:
- main
pull_request:
types: [opened,synchronize,reopened]
types: [opened, synchronize, reopened]
branches:
- main

env:
RUST_VERSION: "1.74"
NIGHTLY_VERSION: nightly-2024-01-23
CARGO_TERM_COLOR: always
# Skip incremental build and debug info generation in CI
CARGO_INCREMENTAL: 0
CARGO_PROFILE_DEV_DEBUG: 0
RUST_BACKTRACE: full

jobs:
lint:
Expand All @@ -28,7 +27,7 @@ jobs:
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ env.NIGHTLY_VERSION }}
toolchain: stable
override: true
components: rustfmt, clippy
- name: Install protobuf-compiler
Expand All @@ -38,24 +37,17 @@ jobs:
continue-on-error: false
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ env.RUST_VERSION }}-${{ env.NIGHTLY_VERSION }}-cargo-lint-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ env.RUST_VERSION }}-${{ env.NIGHTLY_VERSION }}-cargo-lint-
- name: Install cargo-sort
uses: actions-rs/[email protected]
with:
crate: cargo-sort
version: latest
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Check formatting
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- name: Check Cargo.toml formatting
run: cargo sort --check --check-format
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -76,21 +68,22 @@ jobs:
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ env.NIGHTLY_VERSION }}
toolchain: stable
override: true
components: rustfmt, clippy
- name: Install protobuf-compiler
run: sudo apt-get install -y protobuf-compiler
- name: Cache
uses: actions/cache@v3
continue-on-error: false
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ env.RUST_VERSION }}-${{ env.NIGHTLY_VERSION }}-cargo-test-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ env.RUST_VERSION }}-${{ env.NIGHTLY_VERSION }}-cargo-test-
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
Expand All @@ -106,4 +99,4 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: nextest
args: run --workspace
args: run --workspace
Loading

0 comments on commit 39d8887

Please sign in to comment.