Skip to content

Bk/add swift linting #487

Bk/add swift linting

Bk/add swift linting #487

Workflow file for this run

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-latest
steps:
- uses: actions/checkout@v2
- name: Lint Swift
run: swift package --allow-writing-to-package-directory format --lint