-
Notifications
You must be signed in to change notification settings - Fork 10
51 lines (49 loc) · 1.25 KB
/
apple.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
42
43
44
45
46
47
48
49
50
51
name: Apple
env:
NWS_AGENT_CONTACT: ${{ secrets.NWS_AGENT_CONTACT }}
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
macos:
runs-on: macos-latest
steps:
- uses: maxim-lobanov/setup-xcode@v1.1
with:
xcode-version: 14.2
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: .build
key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}
restore-keys: |
${{ runner.os }}-spm-
- name: Build
run: swift build -v
- name: Run tests
run: swift test -v
ios:
runs-on: macos-latest
steps:
- uses: maxim-lobanov/setup-xcode@v1.1
with:
xcode-version: 14.2
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: .build
key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}
restore-keys: |
${{ runner.os }}-spm-
- name: Build
run: xcodebuild clean build-for-testing
-scheme 'NationalWeatherService'
-destination 'name=iPhone 14 Pro'
-quiet
- name: Unit Test
run: xcodebuild test-without-building
-scheme 'NationalWeatherService'
-destination 'name=iPhone 14 Pro'
-quiet