2023-12-02 07:58:43 -07:00
|
|
|
name: Check iOS
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
paths:
|
|
|
|
- '.github/workflows/check-ios.yml'
|
|
|
|
- 'ios/**'
|
|
|
|
pull_request:
|
|
|
|
paths:
|
|
|
|
- '.github/workflows/check-ios.yml'
|
|
|
|
- 'ios/**'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
Swift-Lint:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Lint with SwiftLint
|
|
|
|
uses: norio-nomura/action-swiftlint@master
|
|
|
|
with:
|
|
|
|
args: --strict
|
|
|
|
env:
|
|
|
|
WORKING_DIRECTORY: ios
|
|
|
|
Swift-Format:
|
2024-02-09 07:24:10 -07:00
|
|
|
runs-on: macos-14 # This allow us to use Xcode 15.0.1 which is a lot faster - TODO change to "macos-latest" once it's out of beta
|
2023-12-02 07:58:43 -07:00
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
working-directory: ./ios
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- name: Install SwiftFormat
|
|
|
|
run: brew install swiftformat
|
|
|
|
|
|
|
|
- name: Format Swift code
|
|
|
|
run: swiftformat --verbose .
|
|
|
|
|
|
|
|
- name: Verify formatted code is unchanged
|
|
|
|
run: git diff --exit-code HEAD
|