build(deps-dev): bump the development group across 1 directory with 9 updates #675
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: Check Format | |
on: | |
push: | |
branches-ignore: | |
- "dependabot/**" | |
pull_request: | |
env: | |
# Lets us format with unstable rustfmt options | |
RUST_CHANNEL: nightly | |
jobs: | |
check_format: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
# Check formatting of Rust files | |
- name: Install Rust toolchain | |
run: | | |
rustup toolchain install --profile minimal --component rustfmt --no-self-update ${{ env.RUST_CHANNEL }} | |
rustup default ${{ env.RUST_CHANNEL }} | |
- name: Run cargo format | |
run: cargo +nightly fmt --all --check | |
# Check formatting of other files | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: lts/* | |
- name: Install prettier | |
run: npm ci | |
- name: Run prettier | |
run: npm run format:check |