diff --git a/.github/workflows/run-tests.yaml b/.github/workflows/run-tests.yaml index 312032f9c..88f059123 100644 --- a/.github/workflows/run-tests.yaml +++ b/.github/workflows/run-tests.yaml @@ -8,27 +8,27 @@ on: branches: [main] env: - GRADLE_OPTS: "-Dorg.gradle.jvmargs=-Xmx3g -Dorg.gradle.parallel=false -Dorg.gradle.daemon=false -Dkotlin.incremental=false" + GRADLE_OPTS: "-Dorg.gradle.parallel=false -Dorg.gradle.daemon=false -Dkotlin.incremental=false" jobs: macos-tests: if: github.event_name != 'pull_request' || !github.event.pull_request.draft name: Run macOS tests - runs-on: macos-latest + runs-on: macos-14 steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Gradle Wrapper Validation - uses: gradle/wrapper-validation-action@v1 + uses: gradle/wrapper-validation-action@v2 - name: Setup JDK - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: distribution: zulu java-version: 17 - name: Run tests run: ./gradlew check - name: Upload test results - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 if: failure() with: name: macos-test-results @@ -40,11 +40,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Gradle Wrapper Validation - uses: gradle/wrapper-validation-action@v1 + uses: gradle/wrapper-validation-action@v2 - name: Setup JDK - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: distribution: zulu java-version: 17 @@ -59,7 +59,7 @@ jobs: - name: Run tests run: ./gradlew check - name: Upload test results - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 if: failure() with: name: linux-test-results @@ -71,18 +71,18 @@ jobs: runs-on: windows-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Gradle Wrapper Validation - uses: gradle/wrapper-validation-action@v1 + uses: gradle/wrapper-validation-action@v2 - name: Setup JDK - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: distribution: zulu java-version: 17 - name: Run tests - run: ./gradlew check "-Dorg.gradle.jvmargs=-Xmx1g -XX:MaxMetaspaceSize=500m" + run: ./gradlew check - name: Upload test results - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 if: failure() with: name: windows-test-results @@ -91,17 +91,22 @@ jobs: android-tests: if: github.event_name != 'pull_request' || !github.event.pull_request.draft name: Run Android tests - runs-on: macos-latest + runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Gradle Wrapper Validation - uses: gradle/wrapper-validation-action@v1 + uses: gradle/wrapper-validation-action@v2 - name: Setup JDK - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: distribution: zulu java-version: 17 + - name: Enable KVM group perms + run: | + echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules + sudo udevadm control --reload-rules + sudo udevadm trigger --name-match=kvm - name: Run connected tests uses: reactivecircus/android-emulator-runner@v2 with: @@ -109,7 +114,7 @@ jobs: arch: x86_64 script: ./gradlew connectedCheck - name: Upload test results - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 if: failure() with: name: android-test-results diff --git a/couchbase-lite-ee/src/appleTest/ee/kotbase/MessageEndpointAppleTest.kt b/couchbase-lite-ee/src/appleTest/ee/kotbase/MessageEndpointAppleTest.kt index 67ddbac57..8cbc4cc01 100644 --- a/couchbase-lite-ee/src/appleTest/ee/kotbase/MessageEndpointAppleTest.kt +++ b/couchbase-lite-ee/src/appleTest/ee/kotbase/MessageEndpointAppleTest.kt @@ -13,6 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +@file:Suppress("DEPRECATION") + package kotbase import cocoapods.CouchbaseLite.CBLErrorHTTPNotFound diff --git a/couchbase-lite-ee/src/appleTest/ee/kotbase/URLEndpointListenerBaseTest.kt b/couchbase-lite-ee/src/appleTest/ee/kotbase/URLEndpointListenerBaseTest.kt index 360d8ade2..c5789bb0b 100644 --- a/couchbase-lite-ee/src/appleTest/ee/kotbase/URLEndpointListenerBaseTest.kt +++ b/couchbase-lite-ee/src/appleTest/ee/kotbase/URLEndpointListenerBaseTest.kt @@ -13,6 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +@file:Suppress("DEPRECATION") + package kotbase import cocoapods.CouchbaseLite.kCBLCertAttrCommonName diff --git a/couchbase-lite-ee/src/appleTest/ee/kotbase/URLEndpointListenerTest.kt b/couchbase-lite-ee/src/appleTest/ee/kotbase/URLEndpointListenerTest.kt index fa6f190a1..cb3c4f987 100644 --- a/couchbase-lite-ee/src/appleTest/ee/kotbase/URLEndpointListenerTest.kt +++ b/couchbase-lite-ee/src/appleTest/ee/kotbase/URLEndpointListenerTest.kt @@ -13,6 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +@file:Suppress("DEPRECATION") + package kotbase import cocoapods.CouchbaseLite.*