Nova/.github/workflows/rust.yml
.github/workflows/rust.ymlRaw
1name: Build and Test Nova
2
3on:
4 push:
5 branches: [ main ]
6 pull_request:
7 branches: [ main ]
8
9jobs:
10 build:
11 runs-on: ubuntu-latest
12 steps:
13 - uses: actions/checkout@v2
14 - name: Install
15 run: rustup default stable
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 +stable test --release --verbose
24 - name: Check Rustfmt Code Style
25 run: cargo fmt --all -- --check
26 - name: Check clippy warnings
27 run: cargo clippy --all-targets --all-features -- -D warnings
28