Skip to content

Commit

Permalink
CICD: Build and run tests
Browse files Browse the repository at this point in the history
  • Loading branch information
forslund authored and mikejgray committed Nov 17, 2024
1 parent ceb8bcf commit 2c844ab
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/cargo-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: main

on:
push:
branches: [ main, dev ]
pull_request:

env:
CARGO_TERM_COLOR: always

jobs:
build_and_test:
name: OVOS Message bus
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: Swatinem/rust-cache@v2

- name: setup toolchain
uses: hecrj/setup-rust-action@v2
with:
rust-version: stable

- name: cargo test
run: cargo test --all-features

- name: rustfmt
run: cargo fmt --all -- --check

- name: clippy
run: cargo clippy --all --all-features --tests -- -D warnings

0 comments on commit 2c844ab

Please sign in to comment.