From abe582a1179b70323ba38b5e7b87926dd450879e Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Wed, 19 Jun 2024 15:06:11 +0200 Subject: [PATCH] Add CI workflows --- .github/workflows/ci.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..9f7bdf1 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,25 @@ +name: CI + +on: + push: + branches: + - main + pull_request: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@master + + - name: Check code + run: cargo check + - name: Run tests + run: cargo test + - name: Run rustfmt + run: cargo fmt -- --check + - name: Run clippy + run: cargo clippy -- --deny warnings + - name: Check documentation + run: RUSTDOCFLAGS="-D warnings" cargo doc --no-deps