passforios/.github/workflows/linting.yml

24 lines
541 B
YAML

name: Linting
on: pull_request
jobs:
swiftformat:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Installing packages
run: brew update && brew install -f swiftformat
- name: swiftformat
run: |
swiftformat --lint .
swiftlint:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Installing packages
run: brew update && brew install -f swiftlint || brew link --overwrite swiftlint
- name: swiftlint
run: |
swiftlint --strict