Skip to content

Commit 015055c

Browse files
Add basic CI workflow
Fixes: #36
1 parent 5c858c2 commit 015055c

2 files changed

Lines changed: 23 additions & 1 deletion

File tree

.github/workflows/ci.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Copyright (C) Nitrokey GmbH
2+
# SPDX-License-Identifier: CC0-1.0
3+
4+
name: CI
5+
6+
on:
7+
pull_request:
8+
push:
9+
branches: [main]
10+
workflow_dispatch:
11+
12+
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@master
19+
- name: Install rust
20+
run: rustup show active-toolchain || rustup toolchain install
21+
- name: Run checks
22+
run: make lint

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ lint:
2828
cargo fmt --check
2929
cargo check --all-features --all-targets
3030
cargo clippy --all-targets --all-features -- -Dwarnings
31-
RUSTDOCFLAGS='-Dwarnings' cargo doc --all-features
31+
RUSTDOCFLAGS='-Dwarnings' cargo doc --all-features --no-deps
3232

3333
.PHONY: tarpaulin
3434
tarpaulin:

0 commit comments

Comments
 (0)