build: 新增 swiftlint #22
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: macOS-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: Run tests | |
run: xcodebuild test -workspace Example/CleanJSON.xcworkspace -scheme CleanJSON_Tests -destination 'platform=iOS Simulator,name=iPhone 11' | |
- name: Install cocoapods | |
run: gem install cocoapods --pre && pod install --project-directory=Example | |
- name: Pod lib lint | |
run: pod lib lint --allow-warnings |