From 1b93a55e545a0585e7e384ea69312d382b6fa3a0 Mon Sep 17 00:00:00 2001 From: Thibault Date: Thu, 23 May 2024 18:51:00 +0200 Subject: [PATCH] feat: add ci --- .github/workflows/build_test.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/build_test.yml diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml new file mode 100644 index 0000000..b3eebf9 --- /dev/null +++ b/.github/workflows/build_test.yml @@ -0,0 +1,23 @@ +name: ci + +on: + push: + branches: + - "main" + pull_request: + branches: + - "main" + +jobs: + test: + name: Test + runs-on: ubuntu-22.04 + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Build + run: cargo build + - name: Run clippy + run: cargo clippy --all-targets --all-features + - name: Run tests + run: cargo test --all-targets --all-features