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