Skip to content

Low Priority: For Carton on Swift 5.9 Toolchain #703

Low Priority: For Carton on Swift 5.9 Toolchain

Low Priority: For Carton on Swift 5.9 Toolchain #703

Workflow file for this run

name: SwiftLint
on:
pull_request:
paths:
- ".github/workflows/swiftlint.yml"
- ".swiftlint.yml"
- "**/*.swift"
jobs:
SwiftLint:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v1
# Fetch current versions of files
- name: Fetch base ref
run: |
git fetch --prune --no-tags --depth=1 origin +refs/heads/${{ github.base_ref }}:refs/heads/${{ github.base_ref }}
# Diff pull request to current files, then SwiftLint changed files
- name: GitHub Action for SwiftLint
uses: mayk-it/[email protected]
env:
DIFF_BASE: ${{ github.base_ref }}
DIFF_HEAD: HEAD