Low Priority: For Carton on Swift 5.9 Toolchain #703
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: | |
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 |