.github/workflows/rust.yml
raw| 1 | name: Rust |
| 2 | |
| 3 | on: |
| 4 | push: |
| 5 | branches: ["main"] |
| 6 | pull_request: |
| 7 | branches: ["main"] |
| 8 | |
| 9 | env: |
| 10 | CARGO_TERM_COLOR: always |
| 11 | |
| 12 | jobs: |
| 13 | build: |
| 14 | runs-on: ubuntu-latest |
| 15 | |
| 16 | steps: |
| 17 | - uses: actions/checkout@v3 |
| 18 | with: |
| 19 | submodules: recursive |
| 20 | - name: Install protoc |
| 21 | run: sudo apt-get install protobuf-compiler |
| 22 | - name: Build |
| 23 | run: cargo build --verbose |
| 24 | - name: Check for lints |
| 25 | run: cargo clippy |
| 26 | - name: Run tests |
| 27 | run: | |
| 28 | cargo test --verbose |