ouch/.github/workflows/pr-workflow.yml
João Marcos P. Bezerra 17499d7b5d CI: tweak: reference reusable workflow locally
this allows non-main branches to run their own latest workflows, and
helps with forks too
2024-11-17 20:45:49 -03:00

36 lines
781 B
YAML

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: ./.github/workflows/build-artifacts-and-run-tests.yml
with:
matrix_all_combinations: false
upload_artifacts: false