From 189cce660c4850232609307672529ab1a596f3fa Mon Sep 17 00:00:00 2001 From: Daniel Enubiaka Date: Wed, 7 Oct 2026 12:17:54 +0100 Subject: [PATCH] fix: add test check --- .github/workflows/ci.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 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..6f0d7ab --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,31 @@ +name: CI + +on: + pull_request: + push: + branches: [master] + +env: + CARGO_TERM_COLOR: always + +jobs: + test: + name: test + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable + with: + components: rustfmt, clippy + + - name: Install Linux system dependencies + run: | + sudo apt-get update + sudo apt-get install -y pkg-config libxcb-shape0-dev libxcb-xfixes0-dev \ + libxkbcommon-dev libxkbcommon-x11-dev libfontconfig1-dev + + - uses: Swatinem/rust-cache@v2 + + - run: cargo fmt --all --check + - run: cargo clippy --all-targets -- -D warnings + - run: cargo test --all \ No newline at end of file