From bc82e576f3d3c74fd8137225cb49237d4c167003 Mon Sep 17 00:00:00 2001 From: C0ffeeCode Date: Sat, 27 Apr 2024 13:22:25 +0200 Subject: [PATCH] Create CI workflow --- .github/workflows/rust.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/rust.yml diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml new file mode 100644 index 0000000..ef9d561 --- /dev/null +++ b/.github/workflows/rust.yml @@ -0,0 +1,25 @@ +name: Rust + +on: + # push: + # branches: [ "dev" ] + pull_request: + branches: [ "dev" ] + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Build + run: cargo build --verbose + - name: Run tests + run: cargo test --verbose + - name: Run Clippy lints + run: cargo clippy --all-targets --all-features + - name: Run format checks + run: cargo fmt --check