-
Notifications
You must be signed in to change notification settings - Fork 8
44 lines (41 loc) · 1.04 KB
/
build-and-test.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
name: Build & Test
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
spm:
name: SwiftPM build and test
runs-on: macos-14
steps:
- run: |
sudo xcode-select -s /Applications/Xcode_15.3.app
- uses: actions/checkout@v3
- name: Build swift packages
run: swift build -v
- name: Run tests
run: swift test -v
carthage:
name: Xcode project build and test
runs-on: macos-14
steps:
- run: |
sudo xcode-select -s /Applications/Xcode_15.3.app
- uses: actions/checkout@v3
- name: Build xcode project
run: xcodebuild build -scheme 'SubprocessMocks' -derivedDataPath .build
- name: Run tests
run: xcodebuild test -scheme 'Subprocess' -derivedDataPath .build
cocoapods:
name: Pod lib lint
runs-on: macos-14
steps:
- run: |
sudo xcode-select -s /Applications/Xcode_15.3.app
- uses: actions/checkout@v3
- name: Lib lint
run: pod lib lint --verbose Subprocess.podspec --allow-warnings