Add SwiftLint CI step using GitHub Actions

This commit is contained in:
Blake McAnally 2024-06-28 11:32:53 -05:00 committed by GitHub
parent 62f93ee555
commit 8b7271bfe8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

18
.github/workflows/swiftlint.yml vendored Normal file
View file

@ -0,0 +1,18 @@
name: SwiftLint
on:
pull_request:
paths:
- '.github/workflows/swiftlint.yml'
- '.swiftlint.yml'
- '**/*.swift'
jobs:
SwiftLint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: GitHub Action for SwiftLint (Only files changed in the PR)
uses: norio-nomura/action-swiftlint@3.2.1
env:
DIFF_BASE: ${{ github.base_ref }}