Refac CI: reorganize it and make it run faster for PRs #12
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 | ||
build-and-test: | ||
uses: ouch-org/ouch/.github/workflows/build-artifacts-and-run-tests.yml@latest | ||
Check failure on line 32 in .github/workflows/pr-workflow.yml GitHub Actions / .github/workflows/pr-workflow.ymlInvalid workflow file
|
||
with: | ||
matrix_all_combinations: false | ||
upload_artifacts: false |