Start to use GitHub Action (#432)

This commit is contained in:
Mingshen Sun 2020-12-23 20:26:58 -08:00 committed by GitHub
parent 7c558a893a
commit df80d2e431
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 185 additions and 60 deletions

24
.github/workflows/linting.yml vendored Normal file
View file

@ -0,0 +1,24 @@
name: Linting
on: pull_request
jobs:
swiftformat:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Installing packages
run: brew update && brew install swiftformat
- name: swiftformat
run: |
swiftformat --lint .
swiftlint:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Installing packages
run: brew update && brew upgrade swiftlint
- name: swiftlint
run: |
swiftlint --strict