TRCL-3316 : Trading Rewards Detail Screen Estimated Rewards Card #135
Workflow file for this run
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
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: Run SwiftLint on changed Swift files | |
run: | | |
git diff --cached --name-only | while read filename; do | |
if [[ "$filename" == *.swift ]]; then | |
swiftlint lint --path "$filename" | |
fi | |
done |