Skip to content

Add Swift Lint and Formatting #3

Add Swift Lint and Formatting

Add Swift Lint and Formatting #3

Workflow file for this run

name: Swift Lint
on: [pull_request]
jobs:
swift-format-lint:
name: swift-format lint
runs-on: ubuntu-latest
container: swift:6.0.3
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Swift Version
run: swift --version
- name: Lint
run: swift format lint -r ./ --configuration .swift-format
swiftlint:
name: swiftlint
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Swift
uses: slashmo/[email protected]
with:
version: 6.0.3
- name: Swift Version
run: swift --version
- name: Lint
run: swiftlint