Skip to content

Commit

Permalink
adding format only to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
leogdion committed Feb 4, 2025
1 parent 1aa6930 commit 55d1e35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/update-settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ jobs:
run: bash Scripts/soundness/docc.sh

- name: Run Linter
run: bash Scripts/soundness/lint.sh
run: FORMAT_ONLY=true bash Scripts/soundness/lint.sh

- name: Check for changes
id: check_changes
Expand Down
2 changes: 1 addition & 1 deletion Scripts/soundness/lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ fi
pushd "$PACKAGE_DIR" || exit 1
$MINT_CMD bootstrap -m Mintfile || exit 1

if [ -z "$CI" ]; then
if [ -z "$CI" ] && [ -z "$FORMAT_ONLY" ]; then
$MINT_RUN swift-format format --configuration .swift-format --recursive --parallel --in-place Sources Tests || exit 1
$MINT_RUN swiftlint --autocorrect || exit 1
fi
Expand Down

0 comments on commit 55d1e35

Please sign in to comment.