Add CI workflows #2
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
# 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 | |
- name: Check formatting | |
run: cargo fmt --check | |
- name: Run tests | |
run: cargo t --all-features | |
- name: Check clippy warnings | |
run: cargo clippy -- -Dwarnings | |
- name: Check clippy warnings | |
run: cargo clippy --all-features -- -Dwarnings | |
- name: Check doc warnings | |
run: RUSTDOCFLAGS=-Dwarnings cargo doc --all-features |