From c50568c70921faa732d147b489750c3e2d10265f Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Thu, 8 Feb 2024 15:09:03 +0100 Subject: [PATCH] enable CI --- .github/workflows/ci.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 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 00000000..ea123563 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,30 @@ +name: CI + +on: + pull_request: + branches: [main] + merge_group: + +jobs: + ci: + name: Continuous Integration + runs-on: ubuntu-latest + + steps: + - name: Checkout sources + uses: actions/checkout@v4 + + - name: Install ${{ matrix.rust }} toolchain + uses: dtolnay/rust-toolchain@master + with: + toolchain: stable + components: clippy, rustfmt + + - name: Run tests + run: cargo t + + - name: Check that code is formatted + run: cargo fmt -- --check + + - name: Lint code + run: cargo clippy -- -D warnings