refactor: improve code formatting in `mod.rs` and `logger.rs`
[ouch.git] / .github / workflows / pr-workflow.yml
blobe804c0c5439f8bd090882199c3860e5b099b5ca7
1 name: PR workflow
3 on:
4   pull_request:
5     paths-ignore:
6       - "**/*.md"
8 jobs:
9   rustfmt-nightly-check:
10     runs-on: ubuntu-latest
11     steps:
12       - name: Checkout
13         uses: actions/checkout@v4
15       - name: "Cargo: fmt"
16         run: |
17           rustup toolchain install nightly --profile minimal -c rustfmt
18           cargo +nightly fmt -- --check
20   clippy-checks:
21     runs-on: ubuntu-latest
22     steps:
23       - name: Checkout
24         uses: actions/checkout@v4
26       - name: "Cargo: clippy"
27         run: |
28           rustup toolchain install stable --profile minimal -c clippy
29           cargo +stable clippy -- -D warnings
31   build-and-test:
32     uses: ./.github/workflows/build-artifacts-and-run-tests.yml
33     with:
34       matrix_all_combinations: false
35       upload_artifacts: false