Skip to content

style: auto-format codebase with swiftformat #107

style: auto-format codebase with swiftformat

style: auto-format codebase with swiftformat #107

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
name: Lint
runs-on: macos-26
steps:
- uses: actions/checkout@v4
- name: Install SwiftLint and SwiftFormat
run: brew install swiftlint swiftformat
- name: SwiftFormat
run: swiftformat --lint .
- name: SwiftLint
run: swiftlint
build-and-test:
name: Build & Test
runs-on: macos-26
needs: lint
steps:
- uses: actions/checkout@v4
- name: Create local configuration
run: cp Outspire/Configurations.local.swift.example Outspire/Configurations.local.swift
- name: Select Xcode
run: sudo xcode-select --switch /Applications/Xcode_26.3.app/Contents/Developer
- name: Build & run unit tests
run: |
xcodebuild \
-project Outspire.xcodeproj \
-scheme "Outspire" \
-destination 'platform=iOS Simulator,name=iPhone 17 Pro' \
-skipPackagePluginValidation \
-enableCodeCoverage YES \
test