-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (38 loc) · 1.01 KB
/
swift.yml
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
name: Swift
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
DEVELOPER_DIR: /Applications/Xcode_15.4.app/Contents/Developer
jobs:
swift:
name: Swift
runs-on: macos-latest
env:
SIMULATOR: iPhone 15
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: Download swiftlint binary
run: swift package resolve
- name: Lint
run: >
"$(find ".build/artifacts/swiftlint" -type f -name swiftlint -perm +111 -print -quit)"
lint --strict --reporter github-actions-logging
- name: Resolve package dependencies
run: xcodebuild -resolvePackageDependencies
- name: Build
run: >
xcodebuild
build-for-testing
-scheme "CollectionBuilders"
-destination "name=$SIMULATOR,OS=latest"
-skipPackagePluginValidation
- name: Test
run: >
xcodebuild
test-without-building
-scheme "CollectionBuilders"
-destination "name=$SIMULATOR,OS=latest"