Skip to content

commit last state of develop_pre_signing_and_merge_commit_rules #598

commit last state of develop_pre_signing_and_merge_commit_rules

commit last state of develop_pre_signing_and_merge_commit_rules #598

Workflow file for this run

name: SwiftLint on Changed Files
on:
pull_request:
paths:
- '**/*.swift'
jobs:
swiftlint:
runs-on: macos-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Install SwiftLint
run: |
brew install swiftlint
- name: Lint Modified Swift Files
run: |
# Fetch changes from the base branch of the pull request
git fetch origin ${{ github.base_ref }}
# Use git diff to find changed Swift files, then lint each file with SwiftLint
git diff --name-only origin/${{ github.base_ref }} | grep '\.swift$' | xargs swiftlint --config dydx/.swiftlint.yml --fix lint