From c5f9994c9e8841fc8170c3847f16807b8b8aeb42 Mon Sep 17 00:00:00 2001 From: Aleksey Date: Tue, 10 Feb 2026 14:40:01 +0100 Subject: [PATCH] feat: add ci checks * base ci add * Remove .DS_Store files * Add .DS_Store to gitignore * remove master & develop, kept only stable in matrix Restrict CI workflow to only the main branch for pushes and pull requests. * Update .github/workflows/ci.yml Co-authored-by: osmaczko <33099791+osmaczko@users.noreply.github.com> * Update .github/workflows/ci.yml Co-authored-by: osmaczko <33099791+osmaczko@users.noreply.github.com> --------- Co-authored-by: osmaczko <33099791+osmaczko@users.noreply.github.com> --- .github/workflows/ci.yml | 42 ++++++++++++++++++++++++++++++++++++++++ .gitignore | 1 + 2 files changed, 43 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..164bf17 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,42 @@ +name: CI + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +env: + CARGO_TERM_COLOR: always + +jobs: + test: + name: Test + runs-on: ubuntu-latest + strategy: + matrix: + toolchain: + - stable + steps: + - uses: actions/checkout@v4 + - run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }} + - run: cargo build --verbose + - run: cargo test --verbose + + clippy: + name: Clippy + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }} + - run: rustup component add clippy + - run: cargo clippy --all-targets --all-features -- -D warnings + + fmt: + name: Format + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }} + - run: rustup component add rustfmt + - run: cargo fmt --all -- --check diff --git a/.gitignore b/.gitignore index d395ba5..1dc0b45 100644 --- a/.gitignore +++ b/.gitignore @@ -30,3 +30,4 @@ target # Temporary data folder tmp +.DS_Store