-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (41 loc) · 1.13 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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