-
Notifications
You must be signed in to change notification settings - Fork 1.2k
55 lines (45 loc) · 1.27 KB
/
intelligence-swift.yml
File metadata and controls
55 lines (45 loc) · 1.27 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
name: Intelligence Swift
on:
push:
branches:
- main
paths:
- 'intelligence/swift/**/*'
- '.github/workflows/intelligence-swift.yml'
pull_request:
branches:
- main
paths:
- 'intelligence/swift/**/*'
- '.github/workflows/intelligence-swift.yml'
concurrency:
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && github.run_id || github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
FLWR_TELEMETRY_ENABLED: 0
jobs:
fi_swift_format_lint:
name: Format and Lint Check
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install SwiftFormat
run: brew install swift-format
- name: Check formatting and lint
working-directory: intelligence/swift
run: swift-format lint --recursive .
fi_swift_tests:
name: Tests
runs-on: macos-14
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: swift-actions/setup-swift@v2
with:
swift-version: "6.0.0"
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: "16.2"
- name: Run tests
run: xcodebuild test -scheme flower -destination 'platform=macOS'