Skip to content

Commit

Permalink
Add CI workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
sosthene-nitrokey committed Mar 4, 2025
1 parent 005acc0 commit 1b2b0ed
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
27 changes: 27 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Copyright (C) Nitrokey GmbH
# SPDX-License-Identifier: CC0-1.0

name: CI

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@master
- name: Install rust
run: rustup show active-toolchain || rustup toolchain install
- name: Check formatting
run: cargo fmt --check
- name: Check build
run: |
cargo build
cargo build --all-features
- name: Run tests
run: cargo t --all-features
- name: Check clippy warnings
run: cargo clippy --all-features -- -Dwarnings
- name: Check doc warnings
run: RUSTDOCFLAGS=-Dwarnings cargo doc --all-features
1 change: 0 additions & 1 deletion src/command/writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ pub trait Writer {
type Error: Error;

fn write(&mut self, data: &[u8]) -> Result<usize, Self::Error>;
/// data must be smaller than [`remaining_len`](Writer::remaining_len)
fn write_all(&mut self, data: &[u8]) -> Result<(), Self::Error> {
let mut offset = 0;
while offset < data.len() {
Expand Down

0 comments on commit 1b2b0ed

Please sign in to comment.