Skip to content

Commit

Permalink
ci: add Rust CI pipeline
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Estévez <[email protected]>
  • Loading branch information
daniestevez committed Nov 9, 2022
1 parent 8f0a915 commit 0438dfd
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Rust

on: [push, pull_request]

env:
CARGO_TERM_COLOR: always

jobs:
default_features:
name: Default features
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Format
run: cargo fmt --all -- --check
- name: Clippy
run: cargo clippy -- -D warnings
- name: Doc
run: cargo doc
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose

no_features:
name: No features
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Format
run: cargo fmt --all -- --check
- name: Clippy
run: cargo clippy --no-default-features -- -D warnings
- name: Doc
run: cargo doc
- name: Build
run: cargo build --no-default-features --verbose
- name: Run tests
run: cargo test --no-default-features --verbose

0 comments on commit 0438dfd

Please sign in to comment.