-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (35 loc) · 1.03 KB
/
ci.yaml
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
43
44
45
46
name: CI Workflows
on:
push:
branches: ["main"]
pull_request:
# Do not run on draft pull requests
types:
- opened
- reopened
- synchronize
- ready_for_review
jobs:
lint-and-test:
runs-on: ubuntu-latest
# Do not run on draft pull requests
if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Rust
uses: dtolnay/rust-toolchain@stable
- name: Cache Rust files
uses: Swatinem/rust-cache@v2
- name: Check formatting
run: cargo fmt --check
- name: Install Clippy
run: rustup component add clippy
- name: Run Clippy
run: cargo clippy
- name: Build
run: cargo build --verbose
- name: Run sindri unit tests
run: cargo test --package sindri --lib --features sp1-v3 --verbose
- name: Run sindri-cli unit tests
run: cargo test --package sindri-cli --bin cargo-sindri --verbose