Skip to content

Commit

Permalink
fixup! ci: add GitHub workflow which enforces hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
crawford committed Oct 12, 2023
1 parent 6484263 commit d24dfae
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Parse MSRV
run: sed -n 's/^rust-version = "\(.*\)"$/RUSTUP_TOOLCHAIN=\1/p' Cargo.toml >> $GITHUB_ENV
- name: Install Rust Toolchain
run: rustup toolchain install $RUSTUP_TOOLCHAIN
- name: Install Clippy and Rustfmt
run: rustup component add clippy rustfmt
- name: Run hooks
run: |
base=$(git rev-parse "origin/${{ github.base_ref }}")
Expand Down

0 comments on commit d24dfae

Please sign in to comment.