forked from FuelLabs/fuel-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ci_checks.sh
executable file
·33 lines (30 loc) · 1.49 KB
/
ci_checks.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/env bash
#export FUEL_TRACE=1
#export RUST_LOG=info
# The script runs almost all CI checks locally.
#
# Requires installed:
# - Rust `1.75.0`
# - Nightly rust formatter
# - `cargo install cargo-sort`
# - `npm install prettier prettier-plugin-toml`
npx prettier --check "**/Cargo.toml" &&
cargo +nightly fmt --all -- --check &&
cargo sort -w --check &&
source .github/workflows/scripts/verify_openssl.sh &&
cargo clippy -p fuel-core-wasm-executor --target wasm32-unknown-unknown --no-default-features &&
cargo clippy --all-targets --all-features &&
cargo doc --all-features --workspace --no-deps &&
cargo make check --locked &&
FUEL_ALWAYS_USE_WASM=true cargo make check --all-features --locked &&
cargo check -p fuel-core-types --target wasm32-unknown-unknown --no-default-features &&
cargo check -p fuel-core-storage --target wasm32-unknown-unknown --no-default-features &&
cargo check -p fuel-core-client --target wasm32-unknown-unknown --no-default-features &&
cargo check -p fuel-core-chain-config --target wasm32-unknown-unknown --no-default-features &&
cargo check -p fuel-core-executor --target wasm32-unknown-unknown --no-default-features &&
OVERRIDE_CHAIN_CONFIGS=true cargo test --workspace &&
FUEL_ALWAYS_USE_WASM=true cargo test --all-features --workspace &&
cargo test -p fuel-core --no-default-features &&
cargo test -p fuel-core-client --no-default-features &&
cargo test -p fuel-core-chain-config --no-default-features &&
cargo test --manifest-path version-compatibility/Cargo.toml --workspace