From 1d0d2110c4f383602259948db69bd480f3498904 Mon Sep 17 00:00:00 2001 From: Magamedrasul Ibragimov Date: Sat, 16 Sep 2023 14:56:05 +0400 Subject: [PATCH] chore: add Rust CI --- .github/workflows/build-test-fmt.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/build-test-fmt.yml diff --git a/.github/workflows/build-test-fmt.yml b/.github/workflows/build-test-fmt.yml new file mode 100644 index 0000000..53d1e6c --- /dev/null +++ b/.github/workflows/build-test-fmt.yml @@ -0,0 +1,28 @@ +name: Build-Test-Fmt + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build-test-fmt: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - run: rustup toolchain install stable --profile minimal + - uses: Swatinem/rust-cache@v2 + + - name: Build + run: cargo build + + - name: Test + run: cargo test + + - name: Fmt + run: cargo fmt -- --check + + - name: Clippy + run: cargo clippy -- --deny warnings