Skip to content

TRCL-3316 : Trading Rewards Detail Screen Estimated Rewards Card #135

TRCL-3316 : Trading Rewards Detail Screen Estimated Rewards Card

TRCL-3316 : Trading Rewards Detail Screen Estimated Rewards Card #135

Workflow file for this run

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