From 015055cb72770e3494982eb632f0516f8abafa7f Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Mon, 18 Aug 2025 17:37:23 +0200 Subject: [PATCH] Add basic CI workflow Fixes: https://github.com/trussed-dev/piv-authenticator/issues/36 --- .github/workflows/ci.yaml | 22 ++++++++++++++++++++++ Makefile | 2 +- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..1b8f206 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,22 @@ +# Copyright (C) Nitrokey GmbH +# SPDX-License-Identifier: CC0-1.0 + +name: CI + +on: + pull_request: + push: + branches: [main] + workflow_dispatch: + + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@master + - name: Install rust + run: rustup show active-toolchain || rustup toolchain install + - name: Run checks + run: make lint diff --git a/Makefile b/Makefile index ff384b2..2ee55fd 100644 --- a/Makefile +++ b/Makefile @@ -28,7 +28,7 @@ lint: cargo fmt --check cargo check --all-features --all-targets cargo clippy --all-targets --all-features -- -Dwarnings - RUSTDOCFLAGS='-Dwarnings' cargo doc --all-features + RUSTDOCFLAGS='-Dwarnings' cargo doc --all-features --no-deps .PHONY: tarpaulin tarpaulin: