Skip to content

Commit

Permalink
Revert "Report test results from Github actions"
Browse files Browse the repository at this point in the history
This reverts commit aadb887.
  • Loading branch information
groue committed Jan 6, 2024
1 parent b42f618 commit 002c5ec
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 59 deletions.
27 changes: 1 addition & 26 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ concurrency:
cancel-in-progress: true
permissions:
contents: read
checks: write

jobs:
Framework:
Expand Down Expand Up @@ -80,13 +79,7 @@ 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 }}" -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()
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
SPM:
name: SPM
runs-on: ${{ matrix.runsOn }}
Expand Down Expand Up @@ -133,12 +126,6 @@ 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 }}
Expand All @@ -159,12 +146,6 @@ 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 }}
Expand All @@ -185,12 +166,6 @@ 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 }}
Expand Down
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,3 @@ Tests/SPM/Packages

# Test products
Tests/products

# CI
*.xcresult
30 changes: 0 additions & 30 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,10 @@ 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) \
Expand All @@ -95,92 +93,76 @@ 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
Expand All @@ -191,12 +173,10 @@ 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
Expand All @@ -207,12 +187,10 @@ 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
Expand All @@ -223,12 +201,10 @@ 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
Expand Down Expand Up @@ -393,32 +369,26 @@ 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)

Expand Down

0 comments on commit 002c5ec

Please sign in to comment.