-
Notifications
You must be signed in to change notification settings - Fork 17
64 lines (57 loc) · 1.66 KB
/
Copy pathci.yml
File metadata and controls
64 lines (57 loc) · 1.66 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: CI
on:
push:
branches:
- main
- master
paths:
- 'snapo-app-mac/**'
pull_request:
branches:
- main
- master
paths:
- 'snapo-app-mac/**'
jobs:
build:
runs-on: macos-15
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- name: Set up Xcode
uses: maxim-lobanov/setup-xcode@60606e260d2fc5762a71e64e74b2174e8ea3c8bd
with:
xcode-version: '16'
- name: Build Snap-O
working-directory: snapo-app-mac
run: |
set -o pipefail
xcodebuild -project Snap-O.xcodeproj \
-scheme Snap-O \
CODE_SIGNING_ALLOWED=NO \
CODE_SIGNING_REQUIRED=NO \
build
swiftlint:
runs-on: ubuntu-latest
container:
image: ghcr.io/realm/swiftlint:0.60.0@sha256:262178f856f298c5d04857ef243a8035cbffd52b9ccbc82254164a3690cb0a80
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
fetch-depth: 1
- name: SwiftLint
working-directory: snapo-app-mac
run: swiftlint --reporter github-actions-logging --strict
swiftformat:
runs-on: macos-15
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
fetch-depth: 1
- name: SwiftFormat version
working-directory: snapo-app-mac
run: swiftformat --version
- name: Run SwiftFormat (lint mode)
working-directory: snapo-app-mac
run: swiftformat . --lint --config .swiftformat --reporter github-actions-log