Watch logs for panics #436
Workflow file for this run
This file contains hidden or 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: Code Checks | |
on: [push] | |
env: | |
CARGO_TERM_COLOR: always | |
CARGO_TERM_VERBOSE: true | |
CARGOFLAGS: --workspace --all-targets --all-features | |
RUST_LOG: citrea-e2e=trace,debug | |
RISC0_DEV_MODE: 1 | |
jobs: | |
formatting: | |
name: Check formatting | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run Cargo fmt | |
run: cargo fmt --check | |
linting: | |
name: Check linting | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install protoc | |
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler | |
- name: Run Cargo clippy | |
run: cargo clippy --no-deps --all-targets --all-features -- -Dwarnings | |
udeps: | |
name: Check unused dependencies | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install protoc | |
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler | |
- name: Toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly | |
override: true | |
- name: Run cargo-udeps | |
env: | |
RUSTFLAGS: -A warnings | |
uses: aig787/cargo-udeps-action@v1 | |
with: | |
version: "latest" | |
args: "--workspace --all-features --all-targets" | |
test: | |
name: Run Tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install protoc | |
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler | |
- name: Set up Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
- name: Download Clementine bitvm cache dev bin | |
shell: bash | |
run: wget https://static.testnet.citrea.xyz/common/bitvm_cache_dev.bin -O /tmp/bitvm_cache_dev.bin | |
- name: Download Clementine | |
run: | | |
wget https://github.com/chainwayxyz/clementine/releases/download/v0.3.26/clementine-core-v0.3.26-with-automation-linux-amd64 -O /tmp/clementine-core | |
chmod +x /tmp/clementine-core | |
- name: Run Cargo test | |
env: | |
CLEMENTINE_E2E_TEST_BINARY: /tmp/clementine-core | |
BITVM_CACHE_PATH: /tmp/bitvm_cache_dev.bin | |
RISC0_DEV_MODE: 1 | |
run: cargo test |