Skip to content

Add SwiftFormat linting to github actions #624

Add SwiftFormat linting to github actions

Add SwiftFormat linting to github actions #624

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
jobs:
Package:
runs-on: macos-13
steps:
- uses: actions/checkout@v2
- name: Setting up Xcode
run: sudo xcode-select -s "/Applications/Xcode_15.1.app"
- name: Run tests
run: set -o pipefail && xcrun xcodebuild build test -scheme QuranEngine-Package -sdk "iphonesimulator" -destination "name=iPhone 14 Pro,OS=17.2" | xcpretty
- uses: codecov/codecov-action@v3
with:
swift: true
ExampleApp:
runs-on: macos-13
steps:
- uses: actions/checkout@v2
- name: Setting up Xcode
run: sudo xcode-select -s "/Applications/Xcode_15.1.app"
- name: Build
run: set -o pipefail && xcrun xcodebuild build -project Example/QuranEngineApp.xcodeproj -scheme QuranEngineApp -sdk "iphonesimulator" -destination 'generic/platform=iOS' CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty
SwiftFormat:
runs-on: macos-13
steps:
- uses: actions/checkout@v2
- name: Setting up Xcode
run: sudo xcode-select -s "/Applications/Xcode_15.1.app"
- name: SwiftFormat
run: swift run -c release --package-path ./BuildTools swiftformat --lint .