Skip to content

Commit a71fc79

Browse files
ci: fix forc-fmt usage in CI when checking examples (FuelLabs#4153)
## Description In the current form of `forc-fmt`, we should take the path to the directory rather than the path to the Forc.toml. ## Checklist - [ ] I have linked to any relevant issues. - [ ] I have commented my code, particularly in hard-to-understand areas. - [ ] I have updated the documentation where relevant (API docs, the reference, and the Sway book). - [ ] I have added tests that prove my fix is effective or that my feature works. - [ ] I have added (or requested a maintainer to add) the necessary `Breaking*` or `New Feature` labels where relevant. - [ ] I have done my best to ensure that my PR adheres to [the Fuel Labs Code Review Standards](https://github.com/FuelLabs/rfcs/blob/master/text/code-standards/external-contributors.md). - [x] I have requested a review from the relevant team or maintainers.
1 parent 1e3a734 commit a71fc79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
toolchain: ${{ env.RUST_VERSION }}
7070
- uses: Swatinem/rust-cache@v2
7171
- name: Check Sway examples formatting
72-
run: cargo run --locked -p forc-fmt -- --check --path ./examples/Forc.toml
72+
run: cargo run --locked -p forc-fmt -- --check --path ./examples
7373

7474
build-mdbook:
7575
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)