Skip to content

Commit

Permalink
add workflow file
Browse files Browse the repository at this point in the history
  • Loading branch information
milewski committed Apr 6, 2024
1 parent 8f81c0c commit 617f6ff
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Build & Test

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

env:
CARGO_TERM_COLOR: always

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Build
run: cargo build --verbose

- name: Run lib test
run: cargo test --lib --verbose

- name: Test documentation generation
run: cargo test && cargo doc
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Rust Driver for DRV8833 Dual Bridge Motor Driver

[![Build](https://github.com/milewski/drv8833-driver/actions/workflows/rust.yml/badge.svg?branch=main)](https://github.com/milewski/drv8833-driver/actions/workflows/rust.yml)
[![Crate](https://img.shields.io/crates/v/drv8833-driver.svg)](https://crates.io/crates/drv8833-driver)
[![Documentation](https://docs.rs/drv8833-driver/badge.svg)](https://docs.rs/drv8833-driver)

Expand Down

0 comments on commit 617f6ff

Please sign in to comment.