-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean up MarketInfo data and add SwiftLint action
- Loading branch information
Showing
6 changed files
with
84 additions
and
28 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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: SwiftLint on Changed Files | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
swiftlint: | ||
name: Run SwiftLint | ||
runs-on: macos-latest | ||
|
||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 # fetch all history so that we can get the proper list of changed files | ||
|
||
- name: Install SwiftLint | ||
run: brew install swiftlint | ||
|
||
- name: List all changed files | ||
id: files | ||
uses: jitterbit/get-changed-files@v1 | ||
with: | ||
format: space-delimited | ||
|
||
- name: Run SwiftLint on changed files | ||
run: | | ||
# Extract changed files and filter for Swift files | ||
FILES="${{ steps.files.outputs.all }}" | ||
SWIFT_FILES=$(echo "$FILES" | grep -E '\.(swift)$' | xargs) | ||
# Run SwiftLint on each changed Swift file | ||
# If no Swift files changed, skip the step | ||
if [ -z "$SWIFT_FILES" ]; then | ||
echo "No Swift files to lint." | ||
else | ||
echo "Linting changed Swift files..." | ||
swiftlint lint -- $SWIFT_FILES | ||
fi |
Submodule Abacus
added at
60873f
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
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
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
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