-
Notifications
You must be signed in to change notification settings - Fork 1
61 lines (43 loc) · 1.89 KB
/
test-pull-request.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
52
53
54
55
56
57
58
59
60
61
name: Test Pull Requests
on:
pull_request:
branches: [ main ]
# this allows us to manually run this job
workflow_dispatch:
jobs:
swift-code-checks:
name: Code Tests
runs-on: macos-14
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: brew install swiftlint
- name: Lint code
run: swiftlint lint --config .swiftlint.yml --reporter github-actions-logging
- name: Select Xcode 15.3
run: sudo xcode-select -s /Applications/Xcode_15.3.app
- name: Build UID2 for iOS
run: xcodebuild -scheme UID2 -destination "generic/platform=iOS"
- name: Build UID2 for tvOS
run: xcodebuild -scheme UID2 -destination "generic/platform=tvOS"
- name: Run UID2 unit tests
run: xcodebuild test -scheme UID2 -sdk iphonesimulator17.4 -destination "OS=17.4,name=iPhone 15"
- name: Run UID2 unit tests on tvOS
run: xcodebuild test -scheme UID2 -sdk appletvsimulator17.4 -destination "OS=17.4,name=Apple TV"
- name: Bootstrap Prebid Dependencies
run: cd UID2Prebid && ./bootstrap.sh && cd -
- name: Build UID2Prebid for iOS
run: xcodebuild -project UID2Prebid/UID2Prebid.xcodeproj -scheme UID2Prebid -destination "generic/platform=iOS"
- name: Run UID2Prebid unit tests
run: xcodebuild test -project UID2Prebid/UID2Prebid.xcodeproj -scheme UID2Prebid -sdk iphonesimulator17.4 -destination "OS=17.4,name=iPhone 15"
- name: Lint UID2 pod spec
run: pod lib lint UID2.podspec.json --verbose
- name: Lint UID2Prebid pod spec
run: pod lib lint UID2Prebid.podspec.json --verbose
vulnerability-scan:
name: Vulnerability Scan
runs-on: ubuntu-latest
needs: [swift-code-checks]
steps:
- name: Vulnerability Scan
uses: IABTechLab/uid2-shared-actions/actions/vulnerability_scan_filesystem@v2