Skip to content

Commit

Permalink
Separate lint and format into to steps
Browse files Browse the repository at this point in the history
  • Loading branch information
FranzBusch committed Jul 18, 2024
1 parent 795bf5b commit 77c7115
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/pull_request_soundness.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,12 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Run format check
- name: Mark the workspace as safe
# https://github.com/actions/checkout/issues/766
run: git config --global --add safe.directory ${GITHUB_WORKSPACE}
- name: Run format lint check
run: swift format lint --strict --recursive --parallel .
- name: Run format and check for modified files
run: |
swift format lint --strict --recursive --parallel .
swift format format --parallel --recursive --in-place .
git diff-index --quiet HEAD

0 comments on commit 77c7115

Please sign in to comment.