Update dependency pointfreeco/swift-dependencies to from: "1.5.0" #279
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |