-
-
Notifications
You must be signed in to change notification settings - Fork 2
33 lines (27 loc) · 761 Bytes
/
gated-checkin.yml
File metadata and controls
33 lines (27 loc) · 761 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Gated Check-in
on:
pull_request:
branches: ["main"]
jobs:
build:
runs-on: macos-15
steps:
- name: Checkout
uses: actions/checkout@v6.0.2
- 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 "Front Row.xcodeproj"
-scheme "Front Row"
CODE_SIGNING_ALLOWED=NO | xcpretty && exit ${PIPESTATUS[0]}