-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
005acc0
commit 1b2b0ed
Showing
2 changed files
with
27 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters