-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Uses the same check / action as in `smawk`.
- Loading branch information
1 parent
94e7f1d
commit 2ea1720
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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] |