Skip to content

Commit 2ea1720

Browse files
chore(ci): Check formatting
Uses the same check / action as in `smawk`.
1 parent 94e7f1d commit 2ea1720

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/build.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,3 +270,21 @@ jobs:
270270
- name: Deploy textwrap-wasm-demo-app
271271
if: steps.git-add.outputs.has-changes == 'true'
272272
run: git push origin
273+
274+
format:
275+
name: Format
276+
runs-on: ubuntu-latest
277+
steps:
278+
- name: Checkout repository
279+
uses: actions/checkout@v4
280+
281+
# We use an unstable rustfmt feature and we thus need the
282+
# nightly channel to enforce the formatting.
283+
- name: Setup Rust nightly
284+
run: rustup default nightly
285+
286+
- name: Install rustfmt
287+
run: rustup component add rustfmt
288+
289+
- name: Check Formatting
290+
uses: dprint/check@v2.2

0 commit comments

Comments
 (0)