Start to use GitHub Action (#432)
This commit is contained in:
parent
7c558a893a
commit
df80d2e431
11 changed files with 185 additions and 60 deletions
24
.github/workflows/linting.yml
vendored
Normal file
24
.github/workflows/linting.yml
vendored
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue