mirror of
https://github.com/apple/swift-nio
synced 2026-11-27 05:04:22 +00:00
Motivation:
The contibuting guide gives an incorrect command to run to invoke the
formatting job locally.
Modifications:
- Change the job name to 'soundness'
- Add a note about setting the container architecture
Result:
Better docs
(cherry picked from commit 29490005ab)
Co-authored-by: George Barnett <gbarnett@apple.com>
This commit is contained in:
1 parent
04ef7b4cb3
commit
4d5eb6bb15
1 file changed
+7
-1
+7
-1
@@ -95,7 +95,13 @@ SwiftNIO uses the [swift-format](https://github.com/swiftlang/swift-format) tool
|
||||
|
||||
If you want to apply the formatting to your local repo before you commit then you can either run [check-swift-format.sh](https://github.com/swiftlang/github-workflows/blob/main/.github/workflows/scripts/check-swift-format.sh) which will use your current toolchain, or to match the CI checks exactly you can use `act` (see [act section](#act)):
|
||||
```
|
||||
act --action-offline-mode --bind workflow_call -j format-check --input format_check_enabled=true
|
||||
act --action-offline-mode --bind workflow_call --job soundness --input format_check_enabled=true
|
||||
```
|
||||
|
||||
If you're using a machine with an ARM64 architecture (such as an Apple Silicon Mac) then
|
||||
you'll also need to specify the container architecture:
|
||||
```
|
||||
act --container-architecture linux/amd64 --action-offline-mode --bind workflow_call --job soundness --input format_check_enabled=true
|
||||
```
|
||||
|
||||
This will run the format checks, binding to your local checkout so the edits made are to your own source.
|
||||
|
||||
Reference in new issue
Block a user