forked from FuelLabs/fuels-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ci_checks.sh
executable file
·20 lines (18 loc) · 972 Bytes
/
ci_checks.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env bash
# Requires installed:
# The latest version of the `forc`,`forc-fmt` and `fuel-core`.
# `cargo install fuel-core-bin --git https://github.com/FuelLabs/fuel-core --tag v0.18.1 --locked`
# `cargo install forc --git https://github.com/FuelLabs/sway --tag v0.38.0 --locked`
# `cargo install forc-fmt --git https://github.com/FuelLabs/sway --tag v0.38.0 --locked`
# Note, if you need a custom branch, you can replace `--tag {RELEASE}` with the `--branch {BRANCH_NAME}`.
cargo fmt --all -- --check &&
forc fmt --check --path packages/fuels &&
forc build --terse --path packages/fuels &&
forc build --terse --json-abi-with-callpaths --path packages/fuels &&
cargo clippy --all-targets &&
cargo clippy --all-targets --all-features &&
cargo test --all-targets --all-features &&
cargo test --all-targets --all-features --workspace &&
cargo test --all-targets --workspace &&
cargo run --bin check-docs &&
$(cargo doc |& grep -A 6 "warning: unresolved link to")