From 246f5d596f7b7625627fc7d20b4a7ab97bde8b08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoph=20Kr=C3=B6ppl?= Date: Wed, 6 Mar 2024 08:48:32 +0100 Subject: [PATCH] push workflow added --- .editorconfig | 4 ++-- .github/workflows/push.yml | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/push.yml diff --git a/.editorconfig b/.editorconfig index b86b0bd..faf7106 100644 --- a/.editorconfig +++ b/.editorconfig @@ -12,6 +12,6 @@ indent_size = 4 [Makefile] indent_style = tab -[*.{json,ron,yaml}] +[*.{json,ron,yml}] max_line_length = 120 -indent_size = 2 \ No newline at end of file +indent_size = 2 diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml new file mode 100644 index 0000000..5ac64e7 --- /dev/null +++ b/.github/workflows/push.yml @@ -0,0 +1,35 @@ +name: push + +on: [push] + +env: + CARGO_TERM_COLOR: always + +jobs: + check: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + with: + sparse-checkout: | + Cargo.lock + Cargo.toml + cli + lib + + - uses: dtolnay/rust-toolchain@stable + with: + components: + clippy + rustfmt + toolchain: stable + + - name: Run tests + run: cargo test --all-features --verbose + + - name: Run checks + run: cargo fmt -- --check + + - name: Run clippy + run: cargo clippy --all-targets --all-features -- -D warnings