Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Runs SwiftLint on a codebase.

- name: SwiftLint
  uses: shapehq/actions/swiftlint@v1

You may optionally run SwiftLint in strict mode as shown below. This treats warnings as errors.

- name: SwiftLint
  uses: shapehq/actions/swiftlint@v1
  with:
    args: --strict

The motivation for using this over running the swiftlint CLI directly is that this action can be run on an Ubuntu runner. Consider running the swiftlint CLI directly if you are using a macOS runner.

- name: SwiftLint
  runs: swiftlint --quiet --strict --reporter github-actions-logging