Refac CI: reorganize it and make it run faster for PRs #7
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PR workflow | |
on: | |
pull_request: | |
paths-ignore: | |
- "*.md" | |
jobs: | |
rustfmt-check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: "Cargo: fmt" | |
run: | | |
rustup toolchain install nightly --profile minimal -c rustfmt | |
cargo +nightly fmt -- --check | |
clippy-checks: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: "Cargo: clippy" | |
run: | | |
rustup toolchain install stable --profile minimal -c clippy | |
cargo +stable clippy -- -D warnings | |
run-tests: | |
uses: ouch-org/ouch/.github/workflows/build-artifacts-and-run-tests.yml@tweak-ci | |
with: | |
matrix_all_combinations: false | |
upload_artifacts: false |