Refactor entities into pipes #1346
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: Build and Deploy | |
on: | |
- push | |
- pull_request | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install protobuf-compiler | |
run: sudo apt-get install -y protobuf-compiler | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
- uses: Swatinem/rust-cache@v2 | |
- name: Fmt Check | |
run: cargo fmt -- --check | |
- name: Clippy | |
run: cargo clippy --no-deps -- -Dwarnings | |
- name: Compile | |
run: cargo build | |
- name: Test common lib | |
run: cargo test -p robotica-common --features chrono | |
- name: Test backend lib | |
run: cargo test -p robotica-backend | |
- name: Test frontend lib | |
run: cargo test -p robotica-frontend | |
- name: Test backend lib (Brian) | |
run: cargo test -p brian-backend | |
- name: Test frontend lib (Brian) | |
run: cargo test -p brian-frontend | |
push: | |
name: Push | |
uses: brianmay/workflows/.github/workflows/docker.yaml@main | |
secrets: | |
DEPLOY_SECRET: ${{ secrets.DEPLOY_SECRET }} | |
needs: | |
- test | |
with: | |
deploy_iot: true |