-
Notifications
You must be signed in to change notification settings - Fork 31
42 lines (32 loc) · 1.14 KB
/
pr-check.yml
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
34
35
36
37
38
39
40
41
42
name: Pull Request Check
on:
pull_request:
types:
- opened
- synchronize
- closed
jobs:
check:
runs-on: ubuntu-20.04
steps:
- name: "[Setup] Free Disk Space (insightsengineering/disk-space-reclaimer)"
uses: insightsengineering/disk-space-reclaimer@v1.1.0
- name: "[Setup] Linux Tools"
run: sudo apt install -y cmake pkg-config libssl-dev build-essential clang libclang-dev curl protobuf-compiler
- name: "[Setup] Rust"
run: |
TLCHN=nightly-2024-01-21
curl -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain $TLCHN
rustup target add wasm32-unknown-unknown --toolchain $TLCHN
cargo install cargo-expand --locked --version 1.0.71
- name: Checkout Sources (actions/checkout)
uses: actions/checkout@v3
- name: "[Ceck] cargo fmt"
run: |
cargo fmt --check
- name: "[Check] cargo test"
run: |
cargo test --release --features on-chain-release-build
- name: "[Check] cargo clippy"
run: |
cargo clippy --release --features on-chain-release-build -- -Dwarnings