arnaucube
arnaucube/NovaPublic Self-hosted repository
Nova/.github/workflows/rust.yml
.github/workflows/rust.ymlRaw
 1name: Build and Test Nova
 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: 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