-
Notifications
You must be signed in to change notification settings - Fork 1
97 lines (83 loc) · 3.51 KB
/
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
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
85
86
87
88
89
90
91
92
93
94
95
96
97
name: Test
on:
pull_request:
paths:
- .github/workflows/test.yml
- App/**
- SSLCertificateCheck.xcworkspace/**
- SSLCertificateCheckPackage/**
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true
jobs:
test:
runs-on: macos-14
env:
DEVELOPER_DIR: /Applications/Xcode_16.app/Contents/Developer
steps:
- uses: actions/checkout@v4
- name: Cache Swift Packages
uses: actions/cache@v4
id: cache-swiftpm
with:
path: .swiftpm
key: ${{ runner.os }}-swiftpm-${{ hashFiles('SSLCertificateCheck.xcworkspace/xcshareddata/swiftpm/Package.resolved') }}
- name: Write IDESkipPackagePluginFingerprintValidatation
run: defaults write com.apple.dt.Xcode IDESkipPackagePluginFingerprintValidatation -bool YES
- name: Write IDESkipMacroFingerprintValidation
run: defaults write com.apple.dt.Xcode IDESkipMacroFingerprintValidation -bool YES
- name: Make test-result folder
run: mkdir -p test-results
- name: Xcode test for InfoFeatureTests
run: |
set -o pipefail && \
xcodebuild test \
-scheme InfoFeatureTests \
-workspace SSLCertificateCheck.xcworkspace \
-parallel-testing-enabled=YES \
-destination "platform=iOS Simulator,name=iPhone 15 Pro" \
-resultBundlePath "test-results/Test-InfoFeatureTests.xcresult" \
-clonedSourcePackagesDirPath .swiftpm \
-disableAutomaticPackageResolution | xcpretty
- name: Xcode test for LicenseFeatureTests
run: |
set -o pipefail && \
xcodebuild test \
-scheme LicenseFeatureTests \
-workspace SSLCertificateCheck.xcworkspace \
-parallel-testing-enabled=YES \
-destination "platform=iOS Simulator,name=iPhone 15 Pro" \
-resultBundlePath "test-results/Test-LicenseFeatureTests.xcresult" \
-clonedSourcePackagesDirPath .swiftpm \
-disableAutomaticPackageResolution | xcpretty
- name: Xcode test for SearchFeatureTests
run: |
set -o pipefail && \
xcodebuild test \
-scheme SearchFeatureTests \
-workspace SSLCertificateCheck.xcworkspace \
-parallel-testing-enabled=YES \
-destination "platform=iOS Simulator,name=iPhone 15 Pro" \
-resultBundlePath "test-results/Test-SearchFeatureTests.xcresult" \
-clonedSourcePackagesDirPath .swiftpm \
-disableAutomaticPackageResolution | xcpretty
- name: Xcode test for X509ParserTests
run: |
set -o pipefail && \
xcodebuild test \
-scheme X509ParserTests \
-workspace SSLCertificateCheck.xcworkspace \
-parallel-testing-enabled=YES \
-destination "platform=iOS Simulator,name=iPhone 15 Pro" \
-resultBundlePath "test-results/Test-X509ParserTests.xcresult" \
-clonedSourcePackagesDirPath .swiftpm \
-disableAutomaticPackageResolution | xcpretty
#- uses: kishikawakatsumi/xcresulttool@v1
# if: success() || failure()
# with:
# path: |
# test-results/Test-InfoFeatureTests.xcresult
# test-results/Test-LicenseFeatureTests.xcresult
# test-results/Test-SearchFeatureTests.xcresult
# test-results/Test-X509ParserTests.xcresult
# show-passed-tests: false