This repository has been archived by the owner on Nov 19, 2024. It is now read-only.
Merge pull request #14 from semiotic-ai/joseph/tru-267-make-adjustmen… #72
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Cargo Build & Test | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
workflow_dispatch: | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build_and_test: | |
name: build & test | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
toolchain: | |
- stable | |
steps: | |
- uses: actions/checkout@v3 | |
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }} | |
- name: Install Rustfmt | |
run: rustup component add rustfmt | |
- name: Check code formatting | |
run: cargo fmt -- --check | |
- name: Install Protoc | |
uses: arduino/setup-protoc@v3 | |
- name: Install Clippy | |
run: rustup component add clippy | |
- name: Run Clippy | |
run: cargo clippy | |
- run: cargo build --verbose | |
- run: cargo test --verbose |