Add github action for SwiftLint
This commit is contained in:
parent
2b94443b56
commit
57c39d6e95
1 changed files with 18 additions and 0 deletions
18
.github/workflows/swiftlint.yml
vendored
Normal file
18
.github/workflows/swiftlint.yml
vendored
Normal 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 }}
|
Loading…
Add table
Reference in a new issue