From ef8c5febe190be8fee05c9bbbca269d58c16b028 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandre=20D=C3=A9fossez?= Date: Tue, 17 Sep 2024 14:35:56 +0200 Subject: [PATCH] more ci --- .github/workflows/rust-ci.yml | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust-ci.yml b/.github/workflows/rust-ci.yml index 6f1729b..2958ca3 100644 --- a/.github/workflows/rust-ci.yml +++ b/.github/workflows/rust-ci.yml @@ -4,7 +4,7 @@ on: pull_request: branches: [ main, refacto ] -name: Continuous integration +name: Rust CI jobs: check: @@ -24,3 +24,28 @@ jobs: shell: bash run: | cargo check + - name: clippy + shell: bash + run: | + clippy -- -D warnings + - name: fmt + shell: bash + run: | + cargo fmt --all -- --check + test: + name: Test + defaults: + run: + working-directory: ./rust + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest] + rust: [stable] + steps: + - uses: actions/checkout@v2 + - uses: ./.github/actions/rust_build + - name: check + shell: bash + run: | + cargo test