From d9cc329c04a364fd438e694dbe5465eab0fa34b8 Mon Sep 17 00:00:00 2001 From: Hamza Jadid Date: Sat, 23 Dec 2023 12:55:32 +0200 Subject: [PATCH] feat: added ci workflow --- .github/workflows/ci.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 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..d2d6714 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,32 @@ +name: Continues Integration + +on: + pull_request: + types: [opened, synchronize, reopened] + +jobs: + clippy: + name: Clippy check + runs-on: ubuntu-latest + timeout-minutes: 10 + steps: + - uses: actions/checkout@v4 + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + - uses: actions-rs/cargo@v1 + with: + command: clippy + + test: + name: Integration test + runs-on: ubuntu-latest + timeout-minutes: 10 + steps: + - uses: actions/checkout@v4 + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + - uses: actions-rs/cargo@v1 + with: + command: test