Skip to content

Commit

Permalink
ci: setup gated check-in
Browse files Browse the repository at this point in the history
  • Loading branch information
godly-devotion authored Mar 12, 2024
1 parent a9e351c commit a8a323d
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/gated-checkin.yml
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]}

0 comments on commit a8a323d

Please sign in to comment.