From c53f5cc11bd41bf22f6813e2bb65ae2f226be2a1 Mon Sep 17 00:00:00 2001 From: LIAUD Corentin Date: Thu, 24 Oct 2024 12:21:29 +0200 Subject: [PATCH] feat: update workflow --- .github/workflows/rust-quality.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/rust-quality.yml b/.github/workflows/rust-quality.yml index 01fd631..7f0f733 100644 --- a/.github/workflows/rust-quality.yml +++ b/.github/workflows/rust-quality.yml @@ -1,6 +1,12 @@ name: Rust - Quality -on: [push] +on: + push: + branches: + - '**' + pull_request: + types: [opened, synchronize, reopened] + env: CARGO_TERM_COLOR: always @@ -21,12 +27,12 @@ jobs: steps: - uses: actions/checkout@v4 - name: Run formatter - run : cargo fmt + run : cargo fmt --all --check tests: name: "tests" runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - name: Run tests - run: cargo test --verbose \ No newline at end of file + - uses: actions/checkout@v4 + - name: Run tests + run: cargo test --verbose \ No newline at end of file