-
Notifications
You must be signed in to change notification settings - Fork 0
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
b5f57d7
commit 6481de3
Showing
3 changed files
with
47 additions
and
4 deletions.
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,17 @@ | ||
# 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: Execute checks | ||
run: make ci |
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,26 @@ | ||
# Copyright (C) Nitrokey GmbH | ||
# SPDX-License-Identifier: CC0-1.0 | ||
|
||
.PHONY: all | ||
all: check lint test | ||
|
||
.PHONY: check | ||
check: | ||
cargo check --all-targets | ||
cargo check --all-targets --no-default-features | ||
cargo check --all-targets --all-features | ||
|
||
.PHONY: lint | ||
lint: | ||
cargo clippy --all-targets --all-features | ||
cargo fmt -- --check | ||
cargo doc --all-features --no-deps | ||
|
||
.PHONY: test | ||
test: | ||
cargo test --all-features | ||
|
||
.PHONY: ci | ||
ci: export RUSTFLAGS=-Dwarnings | ||
ci: export RUSTDOCFLAGS=-Dwarnings | ||
ci: check lint test |
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