-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a9e351c
commit a8a323d
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Gated Check-in | ||
|
||
on: | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
jobs: | ||
build: | ||
runs-on: macos-14 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4.1.1 | ||
|
||
- name: Setup Xcode Version | ||
uses: maxim-lobanov/setup-xcode@v1.6.0 | ||
with: | ||
xcode-version: latest-stable | ||
|
||
- name: Install swift-format | ||
run: | | ||
brew update | ||
brew install swift-format | ||
- name: Lint using swift-format | ||
run: | | ||
/opt/homebrew/bin/swift-format lint -s -p -r ./ | ||
- name: Build and Analyze | ||
run: > | ||
xcodebuild clean build analyze | ||
-project "Mochi Diffusion.xcodeproj" | ||
-scheme "Mochi Diffusion" | ||
CODE_SIGNING_ALLOWED=NO | xcpretty && exit ${PIPESTATUS[0]} |