From d7932ce990d8ce9755736f15f09b30edac8bc20a Mon Sep 17 00:00:00 2001 From: Dmitry Date: Sat, 9 Nov 2024 14:32:36 +0300 Subject: [PATCH] chore(workflow): check formatting, build, lint and test --- .github/workflows/rust.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 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..d445611 --- /dev/null +++ b/.github/workflows/rust.yml @@ -0,0 +1,26 @@ +name: Rust + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Formatting check + run: cargo fmt --check --verbose + - name: Build + run: cargo build --verbose + - name: Lint check + run: cargo clippy --verbose + - name: Run tests + run: cargo test --verbose