mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-22 04:00:39 +00:00
Report test results from Github actions
https://github.com/kishikawakatsumi/xcresulttool/discussions/630
This commit is contained in:
1 parent
69ae4c4e96
commit
aadb887b34
3 files changed
+59
-1
No files matched your search
@@ -28,6 +28,7 @@ concurrency:
|
||||
cancel-in-progress: true
|
||||
permissions:
|
||||
contents: read
|
||||
checks: write
|
||||
|
||||
jobs:
|
||||
Framework:
|
||||
@@ -79,7 +80,13 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: ${{ matrix.name }}
|
||||
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -project GRDB.xcodeproj -scheme GRDB -destination "${{ matrix.destination }}" OTHER_SWIFT_FLAGS='$(inherited) -D SQLITE_ENABLE_FTS5 -D SQLITE_ENABLE_PREUPDATE_HOOK' GCC_PREPROCESSOR_DEFINITIONS='$(inherited) GRDB_SQLITE_ENABLE_PREUPDATE_HOOK=1' clean test
|
||||
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -project GRDB.xcodeproj -scheme GRDB -destination "${{ matrix.destination }}" -resultBundlePath TestResults.xcresult OTHER_SWIFT_FLAGS='$(inherited) -D SQLITE_ENABLE_FTS5 -D SQLITE_ENABLE_PREUPDATE_HOOK' GCC_PREPROCESSOR_DEFINITIONS='$(inherited) GRDB_SQLITE_ENABLE_PREUPDATE_HOOK=1' clean test
|
||||
- uses: kishikawakatsumi/xcresulttool@v1
|
||||
with:
|
||||
path: TestResults.xcresult
|
||||
show-passed-tests: false
|
||||
show-code-coverage: false
|
||||
if: success() || failure()
|
||||
SPM:
|
||||
name: SPM
|
||||
runs-on: ${{ matrix.runsOn }}
|
||||
@@ -126,6 +133,12 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
- name: ${{ matrix.name }}
|
||||
run: make test_framework_SQLCipher3Encrypted
|
||||
- uses: kishikawakatsumi/xcresulttool@v1
|
||||
with:
|
||||
path: Tests/CocoaPods/SQLCipher3/TestResults_encrypted.xcresult
|
||||
show-passed-tests: false
|
||||
show-code-coverage: false
|
||||
if: success() || failure()
|
||||
SQLCipher4:
|
||||
name: SQLCipher4
|
||||
runs-on: ${{ matrix.runsOn }}
|
||||
@@ -146,6 +159,12 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
- name: ${{ matrix.name }}
|
||||
run: make test_framework_SQLCipher4Encrypted
|
||||
- uses: kishikawakatsumi/xcresulttool@v1
|
||||
with:
|
||||
path: Tests/CocoaPods/SQLCipher4/TestResults_encrypted.xcresult
|
||||
show-passed-tests: false
|
||||
show-code-coverage: false
|
||||
if: success() || failure()
|
||||
CustomSQLite:
|
||||
name: CustomSQLite
|
||||
runs-on: ${{ matrix.runsOn }}
|
||||
@@ -166,6 +185,12 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
- name: ${{ matrix.name }}
|
||||
run: make test_framework_GRDBCustomSQLiteOSX
|
||||
- uses: kishikawakatsumi/xcresulttool@v1
|
||||
with:
|
||||
path: TestResults.xcresult
|
||||
show-passed-tests: false
|
||||
show-code-coverage: false
|
||||
if: success() || failure()
|
||||
XCFramework:
|
||||
name: XCFramework
|
||||
runs-on: ${{ matrix.runsOn }}
|
||||
|
||||
@@ -115,3 +115,6 @@ Tests/SPM/Packages
|
||||
|
||||
# Test products
|
||||
Tests/products
|
||||
|
||||
# CI
|
||||
*.xcresult
|
||||
@@ -81,10 +81,12 @@ test_CocoaPodsLint: test_CocoaPodsLint_GRDB
|
||||
test_demo_apps: test_GRDBDemoiOS test_GRDBCombineDemo test_GRDBAsyncDemo
|
||||
|
||||
test_framework_GRDBOSX:
|
||||
rm -rf TestResults.xcresult
|
||||
$(XCODEBUILD) \
|
||||
-project GRDB.xcodeproj \
|
||||
-scheme GRDB \
|
||||
-destination "platform=macOS" \
|
||||
-resultBundlePath TestResults.xcresult \
|
||||
OTHER_SWIFT_FLAGS=$(OTHER_SWIFT_FLAGS) \
|
||||
GCC_PREPROCESSOR_DEFINITIONS=$(GCC_PREPROCESSOR_DEFINITIONS) \
|
||||
$(TEST_ACTIONS) \
|
||||
@@ -93,76 +95,92 @@ test_framework_GRDBOSX:
|
||||
test_framework_GRDBiOS: test_framework_GRDBiOS_maxTarget test_framework_GRDBiOS_minTarget
|
||||
|
||||
test_framework_GRDBiOS_maxTarget:
|
||||
rm -rf TestResults.xcresult
|
||||
$(XCODEBUILD) \
|
||||
-project GRDB.xcodeproj \
|
||||
-scheme GRDB \
|
||||
-destination $(MAX_IOS_DESTINATION) \
|
||||
-resultBundlePath TestResults.xcresult \
|
||||
OTHER_SWIFT_FLAGS=$(OTHER_SWIFT_FLAGS) \
|
||||
GCC_PREPROCESSOR_DEFINITIONS=$(GCC_PREPROCESSOR_DEFINITIONS) \
|
||||
$(TEST_ACTIONS) \
|
||||
$(XCPRETTY)
|
||||
|
||||
test_framework_GRDBiOS_minTarget:
|
||||
rm -rf TestResults.xcresult
|
||||
$(XCODEBUILD) \
|
||||
-project GRDB.xcodeproj \
|
||||
-scheme GRDB \
|
||||
-destination $(MIN_IOS_DESTINATION) \
|
||||
-resultBundlePath TestResults.xcresult \
|
||||
$(TEST_ACTIONS) \
|
||||
$(XCPRETTY)
|
||||
|
||||
test_framework_GRDBtvOS: test_framework_GRDBtvOS_maxTarget test_framework_GRDBtvOS_minTarget
|
||||
|
||||
test_framework_GRDBtvOS_maxTarget:
|
||||
rm -rf TestResults.xcresult
|
||||
$(XCODEBUILD) \
|
||||
-project GRDB.xcodeproj \
|
||||
-scheme GRDB \
|
||||
-destination $(MAX_TVOS_DESTINATION) \
|
||||
-resultBundlePath TestResults.xcresult \
|
||||
OTHER_SWIFT_FLAGS=$(OTHER_SWIFT_FLAGS) \
|
||||
GCC_PREPROCESSOR_DEFINITIONS=$(GCC_PREPROCESSOR_DEFINITIONS) \
|
||||
$(TEST_ACTIONS) \
|
||||
$(XCPRETTY)
|
||||
|
||||
test_framework_GRDBtvOS_minTarget:
|
||||
rm -rf TestResults.xcresult
|
||||
$(XCODEBUILD) \
|
||||
-project GRDB.xcodeproj \
|
||||
-scheme GRDB \
|
||||
-destination $(MIN_TVOS_DESTINATION) \
|
||||
-resultBundlePath TestResults.xcresult \
|
||||
$(TEST_ACTIONS) \
|
||||
$(XCPRETTY)
|
||||
|
||||
test_framework_GRDBCustomSQLiteOSX: SQLiteCustom
|
||||
rm -rf TestResults.xcresult
|
||||
$(XCODEBUILD) \
|
||||
-project GRDBCustom.xcodeproj \
|
||||
-scheme GRDBCustom \
|
||||
-destination "platform=macOS" \
|
||||
-resultBundlePath TestResults.xcresult \
|
||||
$(TEST_ACTIONS) \
|
||||
$(XCPRETTY)
|
||||
|
||||
test_framework_GRDBCustomSQLiteiOS: test_framework_GRDBCustomSQLiteiOS_maxTarget test_framework_GRDBCustomSQLiteiOS_minTarget
|
||||
|
||||
test_framework_GRDBCustomSQLiteiOS_maxTarget: SQLiteCustom
|
||||
rm -rf TestResults.xcresult
|
||||
$(XCODEBUILD) \
|
||||
-project GRDBCustom.xcodeproj \
|
||||
-scheme GRDBCustom \
|
||||
-destination $(MAX_IOS_DESTINATION) \
|
||||
-resultBundlePath TestResults.xcresult \
|
||||
$(TEST_ACTIONS) \
|
||||
$(XCPRETTY)
|
||||
|
||||
test_framework_GRDBCustomSQLiteiOS_minTarget: SQLiteCustom
|
||||
rm -rf TestResults.xcresult
|
||||
$(XCODEBUILD) \
|
||||
-project GRDBCustom.xcodeproj \
|
||||
-scheme GRDBCustom \
|
||||
-destination $(MIN_IOS_DESTINATION) \
|
||||
-resultBundlePath TestResults.xcresult \
|
||||
$(TEST_ACTIONS) \
|
||||
$(XCPRETTY)
|
||||
|
||||
test_framework_SQLCipher3:
|
||||
ifdef POD
|
||||
cd Tests/CocoaPods/SQLCipher3 && \
|
||||
rm -rf TestResults.xcresult && \
|
||||
$(POD) install && \
|
||||
$(XCODEBUILD) \
|
||||
-workspace GRDBTests.xcworkspace \
|
||||
-scheme GRDBTests \
|
||||
-resultBundlePath TestResults.xcresult \
|
||||
build-for-testing test-without-building \
|
||||
$(XCPRETTY)
|
||||
else
|
||||
@@ -173,10 +191,12 @@ endif
|
||||
test_framework_SQLCipher3Encrypted:
|
||||
ifdef POD
|
||||
cd Tests/CocoaPods/SQLCipher3 && \
|
||||
rm -rf TestResults_encrypted.xcresult && \
|
||||
$(POD) install && \
|
||||
$(XCODEBUILD) \
|
||||
-workspace GRDBTests.xcworkspace \
|
||||
-scheme GRDBEncryptedTests \
|
||||
-resultBundlePath TestResults_encrypted.xcresult \
|
||||
build-for-testing test-without-building \
|
||||
$(XCPRETTY)
|
||||
else
|
||||
@@ -187,10 +207,12 @@ endif
|
||||
test_framework_SQLCipher4:
|
||||
ifdef POD
|
||||
cd Tests/CocoaPods/SQLCipher4 && \
|
||||
rm -rf TestResults.xcresult && \
|
||||
$(POD) install && \
|
||||
$(XCODEBUILD) \
|
||||
-workspace GRDBTests.xcworkspace \
|
||||
-scheme GRDBTests \
|
||||
-resultBundlePath TestResults.xcresult \
|
||||
build-for-testing test-without-building \
|
||||
$(XCPRETTY)
|
||||
else
|
||||
@@ -201,10 +223,12 @@ endif
|
||||
test_framework_SQLCipher4Encrypted:
|
||||
ifdef POD
|
||||
cd Tests/CocoaPods/SQLCipher4 && \
|
||||
rm -rf TestResults_encrypted.xcresult && \
|
||||
$(POD) install && \
|
||||
$(XCODEBUILD) \
|
||||
-workspace GRDBTests.xcworkspace \
|
||||
-scheme GRDBEncryptedTests \
|
||||
-resultBundlePath TestResults_encrypted.xcresult \
|
||||
build-for-testing test-without-building \
|
||||
$(XCPRETTY)
|
||||
else
|
||||
@@ -369,26 +393,32 @@ else
|
||||
endif
|
||||
|
||||
test_GRDBDemoiOS:
|
||||
rm -rf TestResults.xcresult
|
||||
$(XCODEBUILD) \
|
||||
-project Documentation/DemoApps/GRDBDemoiOS/GRDBDemoiOS.xcodeproj \
|
||||
-scheme GRDBDemoiOS \
|
||||
-destination $(MAX_IOS_DESTINATION) \
|
||||
-resultBundlePath TestResults.xcresult \
|
||||
$(TEST_ACTIONS) \
|
||||
$(XCPRETTY)
|
||||
|
||||
test_GRDBCombineDemo:
|
||||
rm -rf TestResults.xcresult
|
||||
$(XCODEBUILD) \
|
||||
-project Documentation/DemoApps/GRDBCombineDemo/GRDBCombineDemo.xcodeproj \
|
||||
-scheme GRDBCombineDemo \
|
||||
-destination $(MAX_IOS_DESTINATION) \
|
||||
-resultBundlePath TestResults.xcresult \
|
||||
$(TEST_ACTIONS) \
|
||||
$(XCPRETTY)
|
||||
|
||||
test_GRDBAsyncDemo:
|
||||
rm -rf TestResults.xcresult
|
||||
$(XCODEBUILD) \
|
||||
-project Documentation/DemoApps/GRDBAsyncDemo/GRDBAsyncDemo.xcodeproj \
|
||||
-scheme GRDBAsyncDemo \
|
||||
-destination $(MAX_IOS_DESTINATION) \
|
||||
-resultBundlePath TestResults.xcresult \
|
||||
$(TEST_ACTIONS) \
|
||||
$(XCPRETTY)
|
||||
|
||||
|
||||
Reference in new issue
Block a user