Skip to content

Commit

Permalink
chore(ci): Check formatting
Browse files Browse the repository at this point in the history
Uses the same check / action as in `smawk`.
  • Loading branch information
waywardmonkeys committed Sep 29, 2024
1 parent 94e7f1d commit 2ea1720
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -270,3 +270,21 @@ jobs:
- name: Deploy textwrap-wasm-demo-app
if: steps.git-add.outputs.has-changes == 'true'
run: git push origin

format:
name: Format
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

# We use an unstable rustfmt feature and we thus need the
# nightly channel to enforce the formatting.
- name: Setup Rust nightly
run: rustup default nightly

- name: Install rustfmt
run: rustup component add rustfmt

- name: Check Formatting
uses: dprint/[email protected]

0 comments on commit 2ea1720

Please sign in to comment.