-
Notifications
You must be signed in to change notification settings - Fork 44
84 lines (62 loc) · 1.82 KB
/
swift.yaml
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
name: Swift CI
on:
push:
branches:
- main
pull_request:
env:
XCODE_VERSION: 15.1
IOS_DESTINATION: platform=iOS Simulator,OS=17.2,name=iPad (10th generation)
TUIST_TEST_DEVICE: iPad (10th generation)
TUIST_TEST_PLATFORM: iOS
TUIST_TEST_OS: 17.2
jobs:
development-tests:
runs-on: macos-latest
strategy:
matrix:
scheme:
- UnitTests
- SnapshotTests
steps:
- uses: actions/checkout@v4
- uses: jdx/mise-action@v2
- name: Switch Xcode
run: sudo xcode-select -s /Applications/Xcode_${XCODE_VERSION}.app
- name: Install dependencies
run: tuist install --path Samples
- name: Test iOS
run: tuist test --path Samples ${{ matrix.scheme }}
package-tests:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Switch Xcode
run: sudo xcode-select -s /Applications/Xcode_${XCODE_VERSION}.app
# Command line swift runs on the host platform.
# On macOS we can run all tests, including macro tests.
- name: Test macOS
run: swift test
tutorial:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: jdx/mise-action@v2
- name: Switch Xcode
run: sudo xcode-select -s /Applications/Xcode_${XCODE_VERSION}.app
- name: Install dependencies
run: tuist install --path Samples/Tutorial
- name: Tutorial App
run: tuist test --path Samples/Tutorial TutorialTests
documentation-lint:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: jdx/mise-action@v2
- name: Switch Xcode
run: sudo xcode-select -s /Applications/Xcode_${XCODE_VERSION}.app
- name: Install sourcedocs
run: brew install sourcedocs
- name: Swiftdocs
run: |
.buildscript/build_swift_docs.sh ${{ runner.temp }}/swiftdocs