Bk/add swift linting #491
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: Swift | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: macos-latest | |
strategy: | |
matrix: | |
destination: ['platform=iOS Simulator,OS=11.0,name=iPhone 8', 'platform=iOS Simulator,OS=16.2,name=iPhone 14'] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Build | |
run: xcodebuild clean build -scheme HorizonCalendar | |
- name: Run tests | |
run: xcodebuild clean test -project HorizonCalendar.xcodeproj -scheme HorizonCalendar -destination "name=iPhone 8,OS=16.2" | |
lint-swift: | |
runs-on: macos-13 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Lint Swift | |
run: swift package --allow-writing-to-package-directory format --lint | |