testudo/.github/workflows/rust.yml
.github/workflows/rust.ymlRaw
1name: Build and Test Spartan
2
3on:
4 push:
5 branches: [ master ]
6 pull_request:
7 branches: [ master ]
8
9jobs:
10 build:
11 runs-on: ubuntu-latest
12 steps:
13 - uses: actions/checkout@v2
14 - name: Install
15 run: rustup default nightly
16 - name: Install rustfmt Components
17 run: rustup component add rustfmt
18 - name: Install clippy
19 run: rustup component add clippy
20 - name: Build
21 run: cargo build --verbose
22 - name: Run tests
23 run: cargo test --verbose
24 - name: Build examples
25 run: cargo build --examples --verbose
26 - name: Check Rustfmt Code Style
27 run: cargo fmt --all -- --check
28 - name: Check clippy warnings
29 run: cargo clippy --all-targets --all-features -- -D warnings
30