-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (37 loc) · 1.09 KB
/
verify-pr.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
name: "Verify PR"
on:
pull_request:
branches:
- 'main'
- 'develop'
- 'release/*'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
lint:
name: SwiftLint
runs-on: macos-13-large
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Lint Edited Files
run: bash .github/scripts/lintEditedFiles.sh
verify-pr:
name: Verify PR
runs-on: macos-14-xlarge
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Select Xcode
run: |
sudo xcode-select -switch /Applications/Xcode_15.2.app
- name: Log xcodebuild Version
run: |
xcodebuild -version
- name: Build the Package
run: |
set -o pipefail && xcodebuild -scheme CheckoutNetwork -destination "platform=iOS Simulator,name=iPhone 15 Pro,OS=latest"
- name: Run Tests
run: |
set -o pipefail && xcodebuild -scheme CheckoutNetwork -destination "platform=iOS Simulator,name=iPhone 15 Pro,OS=latest" test